Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const stateToProps = state => ({
rootElement: state.elements[getContent(state).id],
layout: get(getPage(state), "settings.general.layout"),
renderLayout: isPluginActive("pb-editor-toolbar-preview")(state)
});
state => ({ count: getContent(state).elements.length }),
{ togglePlugin }
state => ({ content: getContent(state) }),
{