import { IconButton } from 'components/shared' import { strokes } from 'state/shape-styles' import { ColorStyle } from 'types' import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import { Square } from 'react-feather' import { DropdownContent } from '../shared' import { memo } from 'react' import state from 'state' import useTheme from 'hooks/useTheme' function handleColorChange( e: Event & { currentTarget: { value: ColorStyle } } ): void { state.send('CHANGED_STYLE', { color: e.currentTarget.value }) } function ColorContent(): JSX.Element { const { theme } = useTheme() return ( {Object.keys(strokes[theme]).map((color: ColorStyle) => ( ))} ) } export default memo(ColorContent)