import { Card, Stack, Text, Heading, Skeleton, Flex, IconWrapper } from '@/components/atoms' interface DataCardProps { title?: string value: string | number description?: string icon?: React.ReactNode trend?: { value: number label: string positive?: boolean } isLoading?: boolean className?: string } export function DataCard({ title, value, description, icon, trend, isLoading = false, className = '' }: DataCardProps) { if (isLoading) { return (
) } return (
{title && ( {title} )} {value} {description && ( {description} )} {trend && ( {trend.positive ? '↑' : '↓'} {trend.value} {trend.label} )} {icon && ( )}
) }