const { useState, useEffect, useCallback, useRef } = React; function StatusBadge({ status }) { const MAP = { active: 'Aktif', ended: 'Bitti', transferred: 'Transfer', missed: 'Cevapsız', abandoned: 'Yarıda Kesildi', bekliyor: 'Bekliyor', failed: 'Başarısız', }; const label = MAP[status] || status || '—'; return {label}; } function DeptBadge({ dept }) { const label = window.DEPT_LABELS?.[dept] || dept; return {label}; } function Toasts({ toasts }) { return (