mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
16 lines
492 B
JavaScript
16 lines
492 B
JavaScript
import { connect } from 'react-redux';
|
|
import { getExchangeRatesTableStateFactory } from 'store/ExchangeRate/exchange.selector';
|
|
|
|
export default (mapState) => {
|
|
const getExchangeRatesTableState = getExchangeRatesTableStateFactory();
|
|
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
exchangeRatesTableState: getExchangeRatesTableState(state, props),
|
|
};
|
|
return mapState ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
|
|
return connect(mapStateToProps);
|
|
};
|