import { useBackend } from '../backend'; import { Button, Section } from '../components'; import { Window } from '../layouts'; export const AtmosAlertConsole = (props, context) => { const { act, data } = useBackend(context); const priorityAlerts = data.priority_alarms || []; const minorAlerts = data.minor_alarms || []; return (
    {priorityAlerts.length === 0 && (
  • No Priority Alerts
  • )} {priorityAlerts.map((alert) => (
  • ))} {minorAlerts.length === 0 && (
  • No Minor Alerts
  • )} {minorAlerts.map((alert) => (
  • ))}
); };