Widget Hooks
Dashboard widget state and data hooks
Hooks for dashboard widgets and data cards.
Package
@tetherto/mdk-react-devkit
Hooks
@tetherto/mdk-react-devkit
Import the public APIs on this page from @tetherto/mdk-react-devkit.
useContainerThresholds
Hook that reads and updates the temperature/pressure/power thresholds for a single container.
Features: - Load and save container threshold settings - Auto-save default thresholds when none exist - Validate and auto-adjust overlapping thresholds - Handle reset to saved/default values
({ data, onSave, }: UseContainerThresholdsProps) => UseContainerThresholdsReturnuseFinancialDateRange
Resolves the active financial date range (start/end) used by every reporting-section query.
(options?: UseFinancialDateRangeOptions | undefined) => UseFinancialDateRangeResult