useDashboardTimeRange
Tiny piece of shared state for the dashboard's timeline selector. Owns the current `timeline` value plus the canonical option list. The chart hooks (`useHash…
Tiny piece of shared state for the dashboard's timeline selector. Owns the current `timeline` value plus the canonical option list. The chart hooks (`useHashrateChartData`, etc.) consume `timeline` as a prop.
import { useDashboardTimeRange } from "@tetherto/mdk-react-adapter";Signature
(opts: UseDashboardTimeRangeOptions = {}) => DashboardTimeRange| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useDashboardExport
Builds CSV / JSON downloads from the dashboard's already-cached TanStack Query data. Does NOT trigger refetches — the export is exactly what the user is look…
useDeviceAction
Entry point for wiring device-control UI (reboot, power mode, LED, socket switches, ...) into the voting/approval workflow: components build a typed submissi…