mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
11 lines
315 B
JavaScript
11 lines
315 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getVendorByIdFactory } from 'store/vendors/vendors.selectors';
|
|
|
|
export default () => {
|
|
const getVendorById = getVendorByIdFactory();
|
|
const mapStateToProps = (state, props) => ({
|
|
vendor: getVendorById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
};
|