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