import { Link } from "react-router-dom"; interface StatCard { label: string; value: string; /** 값 뒤에 붙는 단위 (예: "%") */ unit?: string; /** 우상단 뱃지 */ badge?: { type: "trend"; value: string } | { type: "icon"; icon: string; color: string }; link: string; } interface StatsCardsProps { cards?: StatCard[]; loading?: boolean; } /** 하드코딩 기본 데이터 */ const DEFAULT_CARDS: StatCard[] = [ { label: "오늘 발송 수", value: "12,847", badge: { type: "trend", value: "15%" }, link: "/statistics", }, { label: "성공률", value: "98.7", unit: "%", badge: { type: "icon", icon: "check_circle", color: "bg-green-100 text-green-600" }, link: "/statistics", }, { label: "등록 기기 수", value: "45,230", badge: { type: "icon", icon: "devices", color: "bg-blue-50 text-primary" }, link: "/devices", }, { label: "활성 서비스", value: "8", badge: { type: "icon", icon: "grid_view", color: "bg-purple-50 text-purple-600" }, link: "/services", }, ]; export default function StatsCards({ cards = DEFAULT_CARDS, loading }: StatsCardsProps) { return (