import useHandleEvents from "hooks/useBoundsHandleEvents" import styled from "styles" import { Edge, Bounds } from "types" export default function EdgeHandle({ size, bounds, edge, }: { size: number bounds: Bounds edge: Edge }) { const events = useHandleEvents(edge) const isHorizontal = edge === Edge.Top || edge === Edge.Bottom const isFarEdge = edge === Edge.Right || edge === Edge.Bottom return ( ) } const StyledEdge = styled("rect", { stroke: "none", fill: "none", variants: { edge: { [Edge.Top]: { cursor: "ns-resize" }, [Edge.Right]: { cursor: "ew-resize" }, [Edge.Bottom]: { cursor: "ns-resize" }, [Edge.Left]: { cursor: "ew-resize" }, }, }, })