import React, { useState } from "react"; /* eslint-disable @typescript-eslint/no-explicit-any */ interface Props { value: number; label: string; sub: string; accent: string; active: boolean; icon?: any; onClick: () => void; } export default function WorkflowStatCard({ value, label, sub, accent, active, icon: Icon, onClick, }: Props) { const [hovered, setHovered] = useState(false); let shadow = "0 4px 12px rgba(0, 0, 0, 0.04)"; if (hovered) { shadow = `0 8px 20px rgba(0, 0, 0, 0.1), 0 0 10px ${accent}20`; } else if (active) { shadow = `0 4px 12px ${accent}15`; } return ( ); }