'use client'; import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import { cn } from '../../shared/utils'; /** * Cross-platform styled scrollable area. * * @description * Replaces the native OS scrollbar (which looks different on Windows/macOS/Linux) * with a consistent, smooth, styled scrollbar across all platforms. * * @ai-rules * 1. NEVER use `overflow-auto` or `overflow-y-auto` directly in complex modal layouts (e.g., ``) — use ``. * 2. The root element MUST have a fixed height or `max-h-` class — without it, the area will grow infinitely. */ function ScrollArea({ className, children, ...props }: React.ComponentProps) { return ( {children} ); } function ScrollBar({ className, orientation = 'vertical', ...props }: React.ComponentProps) { return ( ); } export { ScrollArea, ScrollBar };