import * as React from "react"; import { Row, Col, Help } from "../../../ui/index"; import { Position } from "@blueprintjs/core"; import { DeviceSetting } from "../../../constants"; import { Highlight } from "../maybe_highlight"; import { t } from "../../../i18next_wrapper"; import { DevSettings } from "../../../account/dev/dev_support"; export interface SingleSettingRowProps { label: DeviceSetting; tooltip: string; children: React.ReactChild; settingType: "button" | "input"; } export const SingleSettingRow = ({ label, tooltip, settingType, children }: SingleSettingRowProps) => { const newFormat = DevSettings.futureFeaturesEnabled(); return {settingType === "button" ? {children} : {children}} ; };