import * as React from "react"; import { McuInputBox } from "./mcu_input_box"; import { PinGuardMCUInputGroupProps } from "./interfaces"; import { Row, Col, Help } from "../../ui/index"; import { settingToggle } from "../actions"; import { ToggleButton } from "../../controls/toggle_button"; import { isUndefined } from "lodash"; import { t } from "../../i18next_wrapper"; import { PinNumberDropdown } from "./pin_number_dropdown"; import { DevSettings } from "../../account/dev/dev_support"; import { ToolTips } from "../../constants"; import { Position } from "@blueprintjs/core"; export class PinGuardMCUInputGroup extends React.Component { get newFormat() { return DevSettings.futureFeaturesEnabled(); } Number = () => Timeout = () => State = () => { const { sourceFwConfig, dispatch, activeStateKey } = this.props; const activeStateValue = sourceFwConfig(activeStateKey).value; const inactiveState = isUndefined(activeStateValue) ? undefined : !activeStateValue; return dispatch(settingToggle(activeStateKey, sourceFwConfig))} />; } render() { const { label } = this.props; return !this.newFormat ? :
; } }