Files
bigcapital/client/src/store/Bills/bills.selectors.js
2020-08-04 17:51:17 +02:00

7 lines
216 B
JavaScript

import { createSelector } from '@reduxjs/toolkit';
const billByIdSelector = (state, props) => state.bills.items[props.billId];
export const getBillById = () =>
createSelector(billByIdSelector, (_bill) => _bill);