import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faChartSimple } from "@fortawesome/free-solid-svg-icons"; type StatusReadsProps = { reads: { totalPending: number; totalActive: number; totalSent: number; totalReceived: number; totalLost: number; sanityCheck: boolean; sanityCheckFormula: string; }; isReadsLoading?: boolean; }; const StatusReads = ({ reads, isReadsLoading }: StatusReadsProps) => { const totalPending = reads?.totalPending ?? 0; const totalActive = reads?.totalActive ?? 0; const totalSent = reads?.totalSent ?? 0; const totalLost = reads?.totalLost ?? 0; const totalReceived = reads?.totalReceived ?? 0; if (isReadsLoading) { return

Loading reads…

; } return (

Reads

Pending: {totalPending} | Active:{" "} {totalActive} | Lost: {totalLost}
Sent / Received: {totalSent} |{" "} {totalReceived}
); }; export default StatusReads;