import * as React from "react"; import { DangerZoneProps } from "../interfaces"; import { Row, Col } from "../../../ui/index"; import { Header } from "./header"; import { Collapse } from "@blueprintjs/core"; import { Content, DeviceSetting } from "../../../constants"; import { t } from "../../../i18next_wrapper"; import { Highlight } from "../maybe_highlight"; import { DevSettings } from "../../../account/dev/dev_support"; export function DangerZone(props: DangerZoneProps) { const { dispatch, onReset, botOnline } = props; const { danger_zone } = props.controlPanelState; const newFormat = DevSettings.futureFeaturesEnabled(); return
{!newFormat &&

{t(Content.RESTORE_DEFAULT_HARDWARE_SETTINGS)}

}
{newFormat &&

{t(Content.RESTORE_DEFAULT_HARDWARE_SETTINGS)}

}
; }