import React from 'react'; import type { IAgentAnalyticsTrend } from '../../service/agent-analytics/agent-analytics.interface'; import TrendBadge from './TrendBadge'; import InfoTooltip from './InfoTooltip'; interface KPICardProps { icon: React.ElementType; label: string; value: string | number; trend?: IAgentAnalyticsTrend; suffix?: string; tooltip?: string; } const KPICard = ({ icon: IconComp, label, value, trend, suffix, tooltip, }: KPICardProps): JSX.Element => (
{tooltip && (
)}

{label}

{value} {suffix && ( {suffix} )}
{trend && (
)}
); export default KPICard;