import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import { cn } from '../lib/cn'; interface ScrollAreaProps extends React.ComponentPropsWithoutRef { viewportClassName?: string; } const ScrollArea = React.forwardRef, ScrollAreaProps>( ({ className, children, viewportClassName, type = 'hover', ...props }, ref) => ( div]:!block', viewportClassName)} > {children} ), ); ScrollArea.displayName = 'ScrollArea'; const ScrollBar = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef >(({ className, orientation = 'vertical', ...props }, ref) => ( )); ScrollBar.displayName = 'ScrollBar'; export { ScrollArea, ScrollBar };