import * as Menu from '../DropdownMenu' import { Button } from '../inputs' import { Settings } from 'shared/icons/Settings' import { chartSettingsStore, toggleShowColors, toggleShowP3, toggleShowRec2020, } from 'store/chartSettings' import { useStore } from '@nanostores/react' import { paletteStore, toggleColorSpace } from 'store/palette' export const ChartSettings = () => { const { showColors, showP3, showRec2020 } = useStore(chartSettingsStore) const { mode } = useStore(paletteStore) const nextMode = mode === 'cielch' ? 'OKLch' : 'CIELch' return ( Use {nextMode} color model {showColors ? 'Hide' : 'Show'} colors on charts {showP3 ? 'Hide' : 'Show'} P3 color space {showRec2020 ? 'Hide' : 'Show'} Rec. 2020 color space ) }