import { Card } from "@/components/ui/card"; import { Skeleton } from "@/components/ui/skeleton"; import { cn } from "@/lib/utils"; import type { ReactNode } from "react"; interface ChartCardProps { title: string; children: ReactNode; headerActions?: ReactNode; loading?: boolean; testId?: string; height?: string; className?: string; } export function ChartCard({ title, children, headerActions, loading, testId, height = "200px", className, }: ChartCardProps) { if (loading) { return (
{title} {headerActions && (
{headerActions}
)}
); } return (
{title} {headerActions && (
{headerActions}
)}
{children}
); }