/** * PaneSplitDropZone - Half-pane drop zones for creating new panes via tab drag. * Covers the left or right half of the pane. When a tab is dragged over a half, * a semi-transparent accent overlay highlights the target area. */ import { useDroppable } from '@dnd-kit/core'; interface PaneSplitDropZoneProps { paneId: string; side: 'left' | 'right'; isActive: boolean; } export const PaneSplitDropZone = ({ paneId, side, isActive, }: PaneSplitDropZoneProps): React.JSX.Element => { const { setNodeRef, isOver } = useDroppable({ id: `split-${side}-${paneId}`, data: { type: 'split-zone', paneId, side, }, }); return (
{/* Semi-transparent overlay highlight when hovering */} {isOver && (
)}
); };