Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(state, props) => ({
active: isPluginActive(props.plugin)(state),
// $FlowFixMe
slateFocused: getUi(state).slateFocused,
settingsActive: getActivePlugins("pb-page-element-settings")(state).length > 0
}),
{ togglePlugin }
state => ({
activePluginsTop: getActivePlugins("pb-editor-toolbar-top")(state).map(pl => pl.name),
activePluginsBottom: getActivePlugins("pb-editor-toolbar-bottom")(state).map(pl => pl.name)
}),
null,
state => ({
activePluginsTop: getActivePlugins("pb-editor-toolbar-top")(state).map(pl => pl.name),
activePluginsBottom: getActivePlugins("pb-editor-toolbar-bottom")(state).map(pl => pl.name)
}),
null,