import { cn } from '@documenso/ui/lib/utils'; import type { LucideIcon } from 'lucide-react/dist/lucide-react'; export type CardMetricProps = { icon?: LucideIcon; title: string; value?: string | number; className?: string; children?: React.ReactNode; }; export const CardMetric = ({ icon: Icon, title, value, className, children }: CardMetricProps) => { return (
{Icon && (
)}

{title}

{children || (

{typeof value === 'number' ? value.toLocaleString('en-US') : value}

)}
); };