import { Fragment } from 'inferno'; import { formatCommaNumber } from '../format'; import { useBackend } from '../backend'; import { Box, Button, Flex, LabeledList, ProgressBar, Section } from '../components'; import { Window } from '../layouts'; export const DishIncubator = (props, context) => { const { act, data } = useBackend(context); const { on, system_in_use, food_supply, radiation, growth, toxins, chemicals_inserted, can_breed_virus, chemical_volume, max_chemical_volume, dish_inserted, blood_already_infected, virus, analysed, infection_rate, } = data; return (
act('power')} />}>
act('ejectdish')} /> }> {dish_inserted ? ( virus ? ( {analysed ? infection_rate : 'Unknown.'} ) : ( No virus detected. ) ) : ( No dish loaded. )}
); };