import React from 'react';

interface StatCardProps {
  label: string;
  value: string;
  isWarning?: boolean;
}

export const StatCard: React.FC<StatCardProps> = ({ label, value, isWarning }) => {
  return (
    <div className="kpi-card">
      <span className="kpi-label">{label}</span>
      <span className={`kpi-value ${isWarning ? 'warning' : ''}`}>{value}</span>
    </div>
  );
};
