'use client' import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area' import * as React from 'react' import { cn } from '@/lib/utils' const twStyles = { root: 'relative overflow-hidden', viewport: 'h-full w-full rounded-[inherit]', scrollbar: [ 'flex touch-none select-none transition-colors', 'data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2.5', 'data-[orientation=horizontal]:h-2.5 data-[orientation=horizontal]:flex-col', ], scrollbarThumb: ['relative flex-1 rounded-full bg-gray-200 dark:bg-gray-800'], } const ScrollArea = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, children, ...props }, ref) => { return ( {children} ) }) ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName const ScrollBar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, orientation = 'vertical', ...props }, ref) => { return ( ) }) ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName export { ScrollArea, ScrollBar }