import type { ReactNode } from "react"; import { Card } from "@heroui/react"; type MetricIndicatorProps = { title: string; value: ReactNode; hint?: ReactNode; footer?: ReactNode; icon?: ReactNode; color?: string; valueClassName?: string; }; export default function MetricIndicator({ title, value, hint, footer, icon, color = "border-border", valueClassName = "text-xl font-semibold text-foreground tabular-nums", }: MetricIndicatorProps) { return (

{title}

{icon}

{value}

{footer ? (
{footer}
) : ( hint &&
{hint}
)}
); }