MinerControlsCard
Action card for a single miner: power, reboot, mode select, and maintenance entry points.
Action card for a single miner: power, reboot, mode select, and maintenance entry points.
import { MinerControlsCard } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
buttonsStates | Required | Record<string, boolean | undefined> | — | — |
isLoading | Required | boolean | — | — |
showPowerModeSelector | Optional | boolean | undefined | — | — |
Usage
Action card for a single miner exposing power, reboot, mode-select, and maintenance entry points. Reads selected devices from the devicesStore and dispatches commands through the actionsStore.
Minimal example
import { MinerControlsCard } from "@tetherto/mdk-react-devkit";
<MinerControlsCard
buttonsStates={{ reboot: false, start: false }}
isLoading={false}
/>
Example
import { MinerControlsCard } from '@tetherto/mdk-react-devkit'export const MinerControlsCardExample = () => ( <div className="mdk-example-row"> <MinerControlsCard buttonsStates={{ reboot: false, start: false, stop: false }} isLoading={false} /> </div>)