import React from 'react'; import { clsx } from 'clsx'; import { Download, RefreshCw } from 'lucide-react'; import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/Card'; import { Button } from '@/components/ui'; export interface ChartCardProps { title: string; description?: string; children: React.ReactNode; onExport?: () => void; onRefresh?: () => void; isLoading?: boolean; className?: string; actions?: React.ReactNode; } /** * Chart card wrapper component */ export const ChartCard = ({ title, description, children, onExport, onRefresh, isLoading = false, className, actions, }: ChartCardProps) => { return (
{title} {description && {description}}
{onRefresh && ( )} {onExport && ( )} {actions}
{isLoading ? (
) : ( children )} ); };