import { cn } from "@/lib/utils"; import { LucideIcon } from "lucide-react"; type Props = { title: string; value?: string | number | null; icon: LucideIcon; valueClassName?: string; children?: React.ReactNode; }; const StatsCard = ({ title, value, icon: Icon, valueClassName, children, }: Props) => { return (
{children != null ? ( children ) : (

{typeof value === "undefined" ? "..." : value}

)}

{title}

); }; export default StatsCard;