useDeviceAlarms
Shapes the active alarms of the selected devices into timeline items for the Explorer detail panel, mirroring MOS's `getContainerFormatedAlerts` → `getAlertT…
Shapes the active alarms of the selected devices into timeline items for the Explorer detail panel, mirroring MOS's `getContainerFormatedAlerts` → `getAlertTimelineItems` chain: `getAlarms` reads each device's `last.alerts`, `getLogFormattedAlertData` formats each with the device's `id`/`info`/`type` and the timezone-aware date formatter, and `getAlertTimelineItems` wires the log/dot rows plus the `onNavigate` click-through to the alert detail route.
import { useDeviceAlarms } from "@tetherto/mdk-react-devkit";Signature
(devices?: Device[], onNavigate?: (path: string) => void) => UseDeviceAlarmsResult| Package | @tetherto/mdk-react-devkit |