/* Copyright (C) 2024 Manuel Bustillo*/ import clsx from "clsx" import { Icon } from "../../types"; import * as HeroIcon from '@heroicons/react/24/outline' type Style = "green" | "blue" | "red" | "orange" | "gray" const colorClasses = (style: Style) => { switch (style) { case "green": return "bg-green-700 hover:bg-green-800" case "blue": return "bg-blue-500 hover:bg-blue-700" case "red": return "bg-red-600 hover:bg-red-700" case "orange": return "bg-orange-600 hover:bg-orange-700" case "gray": return "bg-gray-600 hover:bg-gray-700" } } export function MainCard({ amount, title, subtitle, style, iconName }: { amount: string, title: string, subtitle?: string, style: Style, iconName: keyof typeof HeroIcon }) { return (
{amount}
{title}
{subtitle || 'ㅤ'}
); } export function SecondaryCard({ amount, title, iconName, style }: { amount: string, title: string, iconName: keyof typeof HeroIcon, style: Style }) { return (
{amount} {title}
); }