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) { return ( ({ root: { backgroundColor: 'var(--mantine-color-body)', borderColor: 'rgba(128,128,128,0.1)', }, })} > {trend && ( {trend.positive ? '+' : ''}{trend.value}% )} {title} {value} {description && ( {description} )} ) }