mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
12 lines
325 B
JavaScript
12 lines
325 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getInvoiecsByIdFactory } from 'store/Invoice/invoices.selector';
|
|
|
|
export default () => {
|
|
const getInvoiceById = getInvoiecsByIdFactory();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
invoice: getInvoiceById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
};
|