MDK Logo
UI Kitreact-devkitComponentsFoundationWidgets

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";
PropStatusTypeDefaultDescription
buttonsStatesRequiredRecord<string, boolean | undefined>
isLoadingRequiredboolean
showPowerModeSelectorOptionalboolean | 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>)