import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import { breakpoints, IconButton } from 'components/shared' import Tooltip from 'components/tooltip' import { strokes } from 'state/shape-styles' import state, { useSelector } from 'state' import { BoxIcon, Item, DropdownContent } from '../shared' import useTheme from 'hooks/useTheme' 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) => ( ))} ) }