import { useBackend } from '../backend'; import { Box, Button, NoticeBox, LabeledList, ProgressBar, Section, Table } from '../components'; import { Window } from '../layouts'; import { capitalize } from 'common/string'; export const AlgaeFarm = (props, context) => { const { act, data } = useBackend(context); const { usePower, materials, last_flow_rate, last_power_draw, inputDir, outputDir, input, output, errorText } = data; return ( {errorText && ( {errorText} )}
act('toggle')} /> }> {last_flow_rate} L/s {last_power_draw} W {materials.map((material) => ( {material.qty}/{material.max}
); };