diff --git a/src/components/call-desk/active-call-card.tsx b/src/components/call-desk/active-call-card.tsx index 7d82ea8..145c7fb 100644 --- a/src/components/call-desk/active-call-card.tsx +++ b/src/components/call-desk/active-call-card.tsx @@ -22,6 +22,7 @@ import { formatPhone, formatShortDate } from '@/lib/format'; import { apiClient } from '@/lib/api-client'; import { useAuth } from '@/providers/auth-provider'; import { useAgentState } from '@/hooks/use-agent-state'; +import { useNetworkStatus } from '@/hooks/use-network-status'; import { cx } from '@/utils/cx'; import { notify } from '@/lib/toast'; import type { Lead, CallDisposition } from '@/types/entities'; @@ -42,6 +43,7 @@ const formatDuration = (seconds: number): string => { export const ActiveCallCard = ({ lead, callerPhone, missedCallId, onCallComplete }: ActiveCallCardProps) => { const { user } = useAuth(); const { callState, callDuration, callUcid, isMuted, isOnHold, answer, hangup, toggleMute, toggleHold } = useSip(); + const networkQuality = useNetworkStatus(); const setCallState = useSetAtom(sipCallStateAtom); const setCallerNumber = useSetAtom(sipCallerNumberAtom); const setCallUcid = useSetAtom(sipCallUcidAtom); @@ -277,6 +279,20 @@ export const ActiveCallCard = ({ lead, callerPhone, missedCallId, onCallComplete return ( <>