import { useBackend } from '../backend'; import { Box, Button, LabeledList, ProgressBar, Section } from '../components'; import { Window } from '../layouts'; export const Farmbot = (props, context) => { const { act, data } = useBackend(context); const { on, locked, tank, tankVolume, tankMaxVolume, waters_trays, refills_water, uproots_weeds, replaces_nutriment, collects_produce, removes_dead, } = data; return (
act('power')}> {on ? 'On' : 'Off'} }> {(tank && ( {tankVolume} / {tankMaxVolume} )) || No water tank detected.} {locked ? 'Locked' : 'Unlocked'}
{(!locked && (
{/* VOREStation Edit: No automatic hydroponics with the lagbot */} {/*
*/} {/* VOREStation Edit End */}
)) || null}
); };