BatchContainerControlsCard
Bulk-controls card that applies start/stop/mode changes to multiple selected containers at once.
Bulk-controls card that applies start/stop/mode changes to multiple selected containers at once.
import { BatchContainerControlsCard } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
isBatch | Optional | boolean | — | — |
isCompact | Optional | boolean | — | — |
connectedMiners | Optional | unknown | — | — |
alarmsDataItems | Optional | TimelineItemData[] | — | — |
onNavigate | Optional | (path: string) => void | — | — |
Usage
Bulk-controls card for applying start/stop/mode changes to multiple selected containers at once. Reads selectedContainers from devicesStore and dispatches batch commands through actionsStore.
Minimal example
import { BatchContainerControlsCard } from "@tetherto/mdk-react-devkit";
<BatchContainerControlsCard
isBatch={true}
isCompact={false}
connectedMiners={[]}
alarmsDataItems={[]}
onNavigate={(path) => router.push(path)}
/>
Example
import { BatchContainerControlsCard } from '@tetherto/mdk-react-devkit'export const BatchContainerControlsCardExample = () => ( <div className="mdk-example-row"> <BatchContainerControlsCard isBatch={true} isCompact={false} connectedMiners={[]} alarmsDataItems={[]} onNavigate={(path) => console.warn('navigate', path)} /> </div>)