import * as React from "react"; import { Row, Col } from "../ui/index"; import { ToggleButton } from "./toggle_button"; import { t } from "../i18next_wrapper"; export interface KeyValRowProps { label: string; labelPlaceholder: string; value: string; valuePlaceholder: string; onClick(): void; disabled: boolean; toggleValue?: number | undefined; title?: string; } /** A row containing a label, value, and toggle button. Useful for maintaining * lists of things (peripherals, feeds, tools etc). */ export function KeyValShowRow(p: KeyValRowProps) { const { label, value, toggleValue, disabled, onClick, title } = p; return

{value}

; }