useContextualModal
Headless open/close state for a modal that needs to remember the subject it was opened against (the row being edited, the device being inspected, etc.).
Headless open/close state for a modal that needs to remember the subject it was opened against (the row being edited, the device being inspected, etc.).
import { useContextualModal } from "@tetherto/mdk-react-adapter";Signature
({ onOpen, onClose, }: UseContextualModalParams = {}) => { modalOpen: boolean; handleClose: () => void; handleOpen: (sub: T | null) => void; subject: T | null; setSubject: React.Dispatch<React.SetSta…| Package | @tetherto/mdk-react-adapter |
| Requires provider | No |
useContainerWidgetsData
Site Overview data hook: composes the container inventory + realtime miner aggregate (@link useContainerWidgets) with the per-model thresholds (@link useCont…
useCostSummary
Base hook for the cost-summary reporting page (single-site mode). Owns the date-range / period UI state and the pure transform from a v2 `/auth/finance/cost-…