/** * ResizeHandle - Visual drag handle for resizable panels * * A thin vertical bar that can be dragged to resize panels. * Shows visual feedback on hover and during drag. */ import { memo } from 'react'; interface ResizeHandleProps { /** Mouse down handler to start dragging */ onMouseDown: (e: React.MouseEvent) => void; /** Double click handler to reset size */ onDoubleClick?: () => void; /** Whether panel is currently being dragged */ isDragging?: boolean; /** Position of the handle ('left' or 'right' edge of the panel) */ position?: 'left' | 'right'; } function ResizeHandleComponent({ onMouseDown, onDoubleClick, isDragging = false, position = 'right', }: ResizeHandleProps) { return (
{/* Wider hit area for easier grabbing */}
{/* Visual indicator dots (shown on hover via CSS) */}
); } export const ResizeHandle = memo(ResizeHandleComponent); export default ResizeHandle;