Open History to see the last commit
1import type { ResizableWidthHandlers } from "~/hooks/useResizableWidth";
2import { cn } from "~/lib/utils";
3
4interface Props {
5 handlers: ResizableWidthHandlers;
6 className?: string;
7}
8
9export function RightPanelResizeHandle({ handlers, className }: Props) {
10 return (
11 <div
12 role="separator"
13 aria-orientation="vertical"
14 className={cn(
15 "group absolute inset-y-0 -left-1 z-20 w-2 cursor-col-resize select-none",
16 className,
17 )}
18 {...handlers}
19 >
20 <span
21 aria-hidden
22 className="pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover:bg-border group-active:bg-primary/60"
23 />
24 </div>
25 );
26}