import React from 'react'; import usePopover from '@/_hooks/use-popover'; import { LeftSidebarItem } from './SidebarItem'; export const LeftSidebarGlobalSettings = ({ globalSettings, globalSettingsChanged }) => { const [open, trigger, content] = usePopover(false); const { hideHeader, canvasMaxWidth, canvasBackgroundColor } = globalSettings; return ( <>
Hide header for launched apps
globalSettingsChanged('hideHeader', e.target.checked)} />
Max width of canvas
{ globalSettingsChanged('canvasMaxWidth', e.target.value); }} value={canvasMaxWidth} /> px
Background color of canvas
{ globalSettingsChanged('canvasBackgroundColor', e.target.value); }} value={canvasBackgroundColor} />
); };