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; isSelected?: boolean; className?: string; } export default function IconCard({ Icon, label, value, color, tooltip, onClick, className, isSelected, }: Props) { const colorClasses: { [key in typeof color]: string } = { purple: "mti-purple-light", red: "mti-red-light", rose: "mti-rose-light", green: "mti-green-light", }; return (