MDK Logo
ReferenceUI KitReactUI Kit foundationComponentsWidgets

RemoveMinerDialog

Confirmation modal for removing a miner from a slot with an optional reason capture.

Confirmation modal for removing a miner from a slot with an optional reason capture.

import { RemoveMinerDialog } from "@tetherto/mdk-react-devkit";
PropStatusTypeDefaultDescription
headDeviceOptionalDevice | undefined
isRemoveMinerFlowRequiredboolean
onCancelRequiredVoidFunction

Usage

Confirmation modal for removing a miner from its slot, with an optional reason-capture step when isRemoveMinerFlow is true.

Example

import { RemoveMinerDialog } from '@tetherto/mdk-react-devkit'export const RemoveMinerDialogExample = () => (  <div className="mdk-example-row">    <RemoveMinerDialog isRemoveMinerFlow={true} onCancel={() => console.warn('cancelled')} />  </div>)