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