import React from 'react'; import { clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; import { TrendingUp, TrendingDown, Minus } from 'lucide-react'; export interface StatCardProps { title: string; value: string | number; change?: { value: string; trend: 'up' | 'down' | 'neutral'; label?: string; }; subtitle?: string; icon?: React.ReactNode; actionText?: string; onAction?: () => void; className?: string; } export const StatCard: React.FC = ({ title, value, change, subtitle, icon, actionText, onAction, className, }) => { return (

{title}

{value} {change && ( {change.trend === 'up' && )}
{icon && (
{icon}
)}
{(subtitle || actionText) && (
{subtitle && {subtitle}} {actionText && ( )}
)}
); };