import { Card, CardHeader, CardTitle, CardDescription, CardContent, } from "@/src/components/ui/card"; import { cn } from "@/src/utils/tailwind"; import { Loader } from "lucide-react"; import { type ReactNode } from "react"; export type DashboardCardProps = { className?: string; title: ReactNode; description?: ReactNode; isLoading: boolean; children?: ReactNode; headerChildren?: ReactNode; cardContentClassName?: string; headerClassName?: string; headerRight?: ReactNode; }; export const DashboardCard = ({ className, title, description, isLoading, children, headerChildren, cardContentClassName, headerClassName, headerRight, }: DashboardCardProps) => { return (
{title} {description ? ( {description} ) : undefined}
{headerRight}
{headerChildren} {isLoading ? (
) : null}
{children}
); };