import { useState } from "react"; import { cn } from "#/utils/utils"; interface ResizeHandleProps { onMouseDown: (e: React.MouseEvent) => void; className?: string; /** While the parent panel drag is active, keep the grip line highlighted. */ isDragging?: boolean; testId?: string; } export function ResizeHandle({ onMouseDown, className, isDragging = false, testId, }: ResizeHandleProps) { const [isHovering, setIsHovering] = useState(false); const lineActive = isDragging || isHovering; return (