import ResizeControl from './ResizeControl'; import { ControlPosition, NodeResizerProps, ResizeControlVariant, ControlLinePosition } from './types'; const handleControls: ControlPosition[] = ['top-left', 'top-right', 'bottom-left', 'bottom-right']; const lineControls: ControlLinePosition[] = ['top', 'right', 'bottom', 'left']; export default function NodeResizer({ nodeId, isVisible = true, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth = 10, minHeight = 10, maxWidth = Number.MAX_VALUE, maxHeight = Number.MAX_VALUE, shouldResize, onResizeStart, onResize, onResizeEnd, }: NodeResizerProps) { if (!isVisible) { return null; } return ( <> {lineControls.map((c) => ( ))} {handleControls.map((c) => ( ))} ); }