import useBoundsEvents from 'hooks/useBoundsEvents' import styled from 'styles' import { Edge, Bounds } from 'types' export default function EdgeHandle({ size, bounds, edge, }: { size: number bounds: Bounds edge: Edge }) { const events = useBoundsEvents(edge) const isHorizontal = edge === Edge.Top || edge === Edge.Bottom const isFarEdge = edge === Edge.Right || edge === Edge.Bottom const { height, width } = bounds 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' }, }, }, })