import * as React from "react"; import { Header } from "../hardware_settings/header"; import { Collapse, Popover, Position } from "@blueprintjs/core"; import { FactoryResetRow } from "./factory_reset_row"; import { PowerAndResetProps } from "./interfaces"; import { ChangeOwnershipForm } from "./change_ownership_form"; import { Feature } from "../../interfaces"; import { FbosButtonRow } from "./fbos_button_row"; import { Content } from "../../../constants"; import { reboot, powerOff, restartFirmware } from "../../actions"; import { t } from "../../../i18next_wrapper"; export function PowerAndReset(props: PowerAndResetProps) { const { dispatch, sourceFbosConfig, shouldDisplay, botOnline } = props; const { power_and_reset } = props.controlPanelState; return
{shouldDisplay(Feature.firmware_restart) && } {shouldDisplay(Feature.change_ownership) && botOnline &&

{t("Change Ownership")} 

}
; }