Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
withProps(props => ({
isFeatureEnabled: isFeatureEnabled(props.flag, props.variate)(
props[ALL_FLAGS_PROP_KEY]
),
}))
)(FeatureToggled);
export const mapStateToProps = (state, ownProps) => ({
isFeatureEnabled: isFeatureEnabled(ownProps.flag, ownProps.variate)(
state[STATE_SLICE].flags
),
});