mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
12 lines
374 B
JavaScript
12 lines
374 B
JavaScript
import { connect } from 'react-redux';
|
|
|
|
export default (mapState) => {
|
|
const mapStateToProps = (state, props) => {
|
|
const mapped = {
|
|
organizationTenantId: state.authentication.organizationId,
|
|
organizationId: state.authentication.organization,
|
|
};
|
|
return (mapState) ? mapState(mapped, state, props) : mapped;
|
|
};
|
|
return connect(mapStateToProps);
|
|
}; |