import React from 'react' import { Card, Group, Stack, Text, ThemeIcon } from '@mantine/core' export interface StatCardProps { /** Metric label, e.g. "Open tasks". */ label: React.ReactNode /** The big number / value. */ value: React.ReactNode /** Optional Lucide icon component. */ icon?: React.ComponentType<{ size?: number; strokeWidth?: number }> /** Theme color for the icon tile (Mantine color key). Defaults to primary. */ color?: string } // A single metric tile: label, large value, optional icon. Compose several in a // StatGrid for a dashboard summary row. export function StatCard({ label, value, icon: Icon, color }: StatCardProps) { return ( {label} {value} {Icon ? ( ) : null} ) }