"use client" import { cn } from "@/lib/utils" import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area" import * as React from "react" interface ScrollAreaProps extends React.ComponentPropsWithoutRef { /** * The viewport's height * @default "100%" */ viewportHeight?: string | number /** * Whether to hide the scrollbar when not in use * @default true */ autoHide?: boolean /** * The scrollbar's width * @default 10 */ scrollbarSize?: number /** * The scrollbar's color */ scrollbarColor?: string /** * The scrollbar's border radius * @default "9999px" */ scrollbarRadius?: string | number } const ScrollArea = React.forwardRef, ScrollAreaProps>( ( { className, children, viewportHeight = "100%", autoHide = true, scrollbarSize = 10, scrollbarColor, scrollbarRadius = "9999px", ...props }, ref, ) => ( {children} ), ) ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName interface ScrollBarProps extends React.ComponentPropsWithoutRef { autoHide?: boolean size?: number color?: string radius?: string | number } const ScrollBar = React.forwardRef, ScrollBarProps>( ({ className, orientation = "vertical", autoHide = true, size = 10, color, radius = "9999px", ...props }, ref) => { const isVertical = orientation === "vertical" const thumbColor = color || "rgba(155, 155, 155, 0.5)" return ( ) }, ) ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName export { ScrollArea, ScrollBar }