Hooks
React hooks for state management, data fetching, and UI interactions
React hooks from @tetherto/mdk-react-devkit and @tetherto/mdk-react-adapter for building mining application UIs.
| Category | Description | Package |
|---|
| Store | Zustand store access hooks | react-adapter |
| Auth | Authentication state hooks | react-adapter |
| Permission | Permission and access control hooks | react-adapter |
| Dashboard | Dashboard data and state hooks | react-adapter, react-devkit |
| Category | Description | Package |
|---|
| Cards | Card component state hooks | react-devkit |
| Charts | Chart component hooks | react-devkit |
| Forms | Form state and validation hooks | react-devkit |
| Tables | Table state and interaction hooks | react-devkit |
| Filters | Filter state hooks | react-devkit |
| Navigation | Navigation state hooks | react-devkit |
| Feedback | Toast and notification hooks | react-devkit |
| Settings | Settings and preferences hooks | react-devkit |
| Widgets | Widget state hooks | react-devkit |
| UI | General UI state hooks | react-adapter |
| Category | Description | Package |
|---|
| Alerts | Alert management hooks | react-adapter |
| Op Centre | Operations centre hooks | react-adapter, react-devkit |
| Category | Description | Package |
|---|
| Utility | General utility hooks | react-adapter, react-devkit |
| Misc | Miscellaneous hooks | react-devkit |
| Example | Example and demo hooks | react-adapter |
// From react-adapter (state/data hooks)
import { useAuth, useDevices } from '@tetherto/mdk-react-adapter'
// From react-devkit (UI component hooks)
import { useDataTable, useChartConfig } from '@tetherto/mdk-react-devkit'