Files
bigcapital/client/src/containers/Purchases/Bill/withBillDetail.js
2020-08-19 02:17:23 +02:00

12 lines
302 B
JavaScript

import { connect } from 'react-redux';
import { getBillByIdFactory } from 'store/Bills/bills.selectors';
export default () => {
const getBillById = getBillByIdFactory();
const mapStateToProps = (state, props) => ({
bill: getBillById(state, props),
});
return connect(mapStateToProps);
};