function ReportsScreen() { const [tab, setTab] = useState("reports"); const channelIcon = { email: "mail", sms: "activity", whatsapp: "activity", teams: "users", slack: "slack", webhook: "external" }; return (
Reports & Alerts
Scheduled reports and real-time alert rules · 2,148 deliveries in last 24h
{/* Tabs */}
{[{ id: "reports", label: "Scheduled Reports", count: 24 }, { id: "alerts", label: "Alert Rules", count: 18 }, { id: "history", label: "Delivery History", count: null }].map(t => ( ))}
{tab === "reports" && (
{REPORTS.map((r, i) => ( ))}
Report Schedule Format · Channel Subs Last
{r.name}
{r.schedule} {r.format} {r.subs}
{r.last}
{r.status}
{/* Right: delivery health */}

Delivery health (24h)

99.2%

Channels used

v}/>
)} {tab === "alerts" && (
{ALERT_RULES.map((r, i) => ( ))}
Rule Severity Channels Triggered (30d) Last Status
{r.name}
{r.severity}
{r.channels.map(c => (
))}
{r.triggered} {r.last}
on
)} {tab === "history" && (
Full delivery history with filters, retries, and receipts.
2,148 messages in the last 24 hours across 5 channels.
)}
); } window.ReportsScreen = ReportsScreen;