import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import { DropdownMenuIconTriggerButton } from 'components/shared' import { strokes } from 'state/shape-styles' import state, { useSelector } from 'state' import { BoxIcon, StyleDropdownItem, StyleDropdownContent } from './shared' import { useTheme } from 'next-themes' import { ColorStyle } from 'types' function handleColorChange(color: ColorStyle): void { state.send('CHANGED_STYLE', { color }) } export default function QuickColorSelect(): JSX.Element { const color = useSelector((s) => s.values.selectedStyle.color) const { theme } = useTheme() return ( {Object.keys(strokes[theme]).map((colorStyle: ColorStyle) => ( ))} ) }