import { useBackend } from '../backend'; import { Button, Flex, LabeledList, ProgressBar, Section, AnimatedNumber } from '../components'; import { Window } from '../layouts'; export const CookingAppliance = (props, context) => { const { act, data } = useBackend(context); const { temperature, optimalTemp, temperatureEnough, efficiency, containersRemovable, our_contents } = data; return (
°C / {optimalTemp}°C %
{our_contents.map((content, i) => { if (content.empty) { return ( ); } return ( {content.progressText[1]} ); })}
); };