import { useSelector } from "state" import { DotShape } from "types" import ShapeGroup from "./shape-group" interface BaseCircleProps { point: number[] fill?: string stroke?: string strokeWidth?: number } function BaseDot({ point, fill = "#ccc", stroke = "none", strokeWidth = 0, }: BaseCircleProps) { return ( ) } export default function Dot({ id, point }: DotShape) { const isSelected = useSelector((state) => state.values.selectedIds.has(id)) return ( {isSelected && ( )} ) }