import type { ReactNode } from 'react'; import { ResponsiveContainer, type ResponsiveContainerProps, } from 'recharts'; import { cn } from '@/lib/utils'; interface ChartContainerProps extends Omit { children: ReactNode; className?: string; title?: string; description?: string; } export function ChartContainer({ children, className, title, description, ...props }: ChartContainerProps) { return (
{(title || description) && (
{title &&

{title}

} {description && (

{description}

)}
)}
{children}
); }