import * as DropdownMenu from '@radix-ui/react-dropdown-menu' import { IconButton } from 'components/shared' import state, { useSelector } from 'state' import { DashStyle } from 'types' import { DropdownContent, Item, DashDottedIcon, DashSolidIcon, DashDashedIcon, } from './shared' const dashes = { [DashStyle.Solid]: , [DashStyle.Dashed]: , [DashStyle.Dotted]: , } export default function QuickdashSelect() { const dash = useSelector((s) => s.values.selectedStyle.dash) return ( {dashes[dash]} ) } function DashItem({ dash, isActive }: { isActive: boolean; dash: DashStyle }) { return ( state.send('CHANGED_STYLE', { dash })} > {dashes[dash]} ) }