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.
npm install \
@tetherto/mdk-react-devkit \
@tetherto/mdk-react-adapter \
@tetherto/mdk-ui-foundation
| Category | Description | Package |
|---|
| Apps | Installed app panel and UI discovery hooks | react-adapter |
| Auth | Authentication state hooks | react-adapter |
| Dashboard | Dashboard data and state hooks | react-adapter |
| Permission | Permission and access control hooks | react-adapter |
| Store | Zustand store access hooks | react-adapter |
| Category | Description | Package |
|---|
| Charts | Chart component hooks | react-devkit |
| Feedback | Toast and notification hooks | react-devkit |
| Filters | Filter state hooks | react-devkit |
| Forms | Form state and validation hooks | react-devkit |
| Navigation | Navigation state hooks | react-devkit |
| Settings | Settings and preferences hooks | react-devkit |
| Widgets | Widget state hooks | react-devkit |
| Category | Description | Package |
|---|
| Utility | General utility hooks | react-adapter |
// From react-adapter (state/data hooks)
import { useAuth, useDevices } from '@tetherto/mdk-react-adapter'
// From react-devkit (UI component hooks)
import { useChartDataCheck, useTimeframeControls } from '@tetherto/mdk-react-devkit'