"use client" import * as React from "react" import { startEdgeResizeDrag, verticalResizeSeparatorAria, } from "../../lib/edge-resize-handle" import { cn } from "../../lib/utils" /** * Edge resize affordance for rails outside `ResizablePanelGroup` (primary * sidebar, SidebarDrillIn). Matches shadcn `ResizableHandle withHandle`: * 1px `bg-border` + centered `h-6 w-1` pill. */ export function SidebarRailResizeHandle({ widthPx, getWidth, onResizeTo, valueMin = 200, valueMax = 480, label = "Resize navigation panel", side = "end", className, }: { /** Current panel width — drives `aria-valuenow`. */ widthPx: number getWidth: () => number onResizeTo: (widthPx: number) => void valueMin?: number valueMax?: number label?: string /** Which edge of the rail hosts the handle. */ side?: "start" | "end" className?: string }) { return (