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