import { Card, Group, Text, ThemeIcon, Stack } from '@mantine/core' import { IconType } from 'react-icons' interface StatsCardProps { title: string value: string | number description?: string icon: IconType color?: string trend?: { value: string positive: boolean } } export function StatsCard({ title, value, description, icon: Icon, color, trend }: StatsCardProps) { const accentColor = `var(--mantine-color-${color ?? 'brand-blue'}-5)` return ( {trend && ( {trend.positive ? '+' : ''}{trend.value}% )} {title} {value} {description && ( {description} )} ) }