mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
12 lines
329 B
JavaScript
12 lines
329 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getEstimateByIdFactory } from 'store/Estimate/estimates.selectors';
|
|
|
|
export default () => {
|
|
const getEstimateById = getEstimateByIdFactory();
|
|
|
|
const mapStateToProps = (state, props) => ({
|
|
estimate: getEstimateById(state, props),
|
|
});
|
|
return connect(mapStateToProps);
|
|
};
|