import React from 'react'; import { Card } from '../Card/Card'; import { Stack } from '../Stack/Stack'; import { Text } from '../Text/Text'; import { Icon } from '../Icon/Icon'; import { useStyles, useTheme } from '../../core'; import { ArrowUpIcon, ArrowDownIcon } from '../../icons'; interface StatProps { label: string; value: string; icon?: React.ElementType; helpText?: string; indicator?: 'up' | 'down'; change?: string; } export const Stat: React.FC = ({ label, value, icon, helpText, indicator, change }) => { const { theme } = useTheme(); const changeColor = indicator === 'up' ? '#10b981' : indicator === 'down' ? '#ef4444' : theme.colors.textSecondary; return ( {label} {icon && } {value} {indicator && ( )} {change && {change}} {helpText && {helpText}} ); };