import { cn } from "@/utils/ui"; interface PanelViewProps extends React.HTMLAttributes { title?: string; actions?: React.ReactNode; children: React.ReactNode; contentClassName?: string; scrollClassName?: string; hideHeader?: boolean; ref?: React.Ref; onScroll?: React.UIEventHandler; scrollRef?: React.Ref; } export function PanelView({ title, actions, children, className, contentClassName, scrollClassName, hideHeader = false, ref, onScroll, scrollRef, ...rest }: PanelViewProps) { return (
{!hideHeader && (
{title && ( {title} )} {actions}
)}
{children}
); }