Card Hooks
Card component state and interaction hooks
Hooks for card component state management.
Package
@tetherto/mdk-react-devkit
Hooks
useCabinetDetail
Reads the selected LV cabinet from devicesStore, re-fetches its family of powermeters and temperature sensors by root (useCabinetDevices) at the realtime cadence, and shapes them into the r…
(onNavigate?: (path: string) => void) => UseCabinetDetailResultuseDeviceAlarms
Shapes the active alarms of the selected devices into timeline items for the Explorer detail panel, mirroring MOS's getContainerFormatedAlerts → getAlertTimelineItems chain: getAlarms reads eac…
(devices?: Device[], onNavigate?: (path: string) => void) => UseDeviceAlarmsResultuseExplorerThingDetail
Explorer detail hook: fetches one thing by id (useThingDetail) and shapes it into display-ready rows for the Explorer detail panel. Reads the same snapshot fields the container table columns…
(id: string | undefined, options?: UseThingDetailOptions) => UseExplorerThingDetailResult