"use client"; import * as React from "react"; import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"; import { cn } from "../../lib/utils"; const ScrollArea = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef & { type?: "auto" | "always" | "scroll" | "hover"; showHorizontalScrollbar?: boolean; } >(({ className, children, type, showHorizontalScrollbar, ...props }, ref) => ( {children} {showHorizontalScrollbar && } )); ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName; const ScrollBar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, orientation = "vertical", ...props }, ref) => ( )); ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName; export { ScrollArea, ScrollBar };