Files
bigcapital/packages/webapp/src/containers/Vendors/withVendorDetail.tsx
2023-02-03 01:02:31 +02:00

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);
};