import { useBackend } from '../backend'; import { AnimatedNumber, Button, LabeledList, NoticeBox, ProgressBar, Section } from '../components'; export const MechBayPowerConsole = props => { const { act, data } = useBackend(props); const { recharge_port } = data; const mech = recharge_port && recharge_port.mech; const cell = mech && mech.cell; return (
act('reconnect')} /> )}> {!recharge_port && ( No power port detected. Please re-sync. ) || !mech && ( No mech detected. ) || ( )} {!recharge_port && ( No power port detected. Please re-sync. ) || !mech && ( No mech detected. ) || !cell && ( No cell is installed. ) || ( {' / ' + cell.maxcharge} )}
); };