mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
// @ts-nocheck
|
|
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);
|
|
};
|