Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
) => (
Component: React.ComponentType
): React.ComponentType =>
flowRight(
setDisplayName(wrapDisplayName(Component, 'injectFeatureToggles')),
withFlags(),
// @ts-ignore
injectFeatureToggles(flagNames, propKey, areOwnPropsEqual)
)(Component);
) => (
Component: React.ComponentType
): React.ComponentType =>
flowRight(
setDisplayName(wrapDisplayName(Component, 'injectFeatureToggles')),
// @ts-ignore
connect(mapStateToProps),
injectFeatureToggles(flagNames, propKey, areOwnPropsEqual)
)(Component);