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 }
const stateToProps = state => ({
rootElement: state.elements[getContent(state).id],
layout: get(getPage(state), "settings.general.layout"),
renderLayout: isPluginActive("pb-editor-toolbar-preview")(state)
});
(state, props) => ({
active: isPluginActive(props.plugin)(state)
}),
{ togglePlugin }
state => ({
open: isPluginActive("pb-page-element-settings-advanced")(state)
}),
{ updateElement, deactivatePlugin }
(state, props) => ({
active: isPluginActive(props.plugin.name)(state)
}),
{ togglePlugin }
state => ({
showOnboarding: isPluginActive("pb-editor-toolbar-onboarding")(state)
}),
{ deactivatePlugin }