import clsx from "clsx"; import {IconType} from "react-icons"; interface Props { Icon: IconType; label: string; value?: string | number; color: "purple" | "rose" | "red" | "green"; tooltip?: string; onClick?: () => void; } export default function IconCard({Icon, label, value, color, tooltip, onClick}: Props) { const colorClasses: {[key in typeof color]: string} = { purple: "text-mti-purple-light", red: "text-mti-red-light", rose: "text-mti-rose-light", green: "text-mti-green-light", }; return (