import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; export const Microwave = (props, context) => { const { act, config, data } = useBackend(context); const { broken, operating, dirty, items } = data; return ( {(broken && (
Bzzzzttttt!!
)) || (operating && (
Microwaving in progress!
Please wait...!
)) || (dirty && (
This microwave is dirty!
Please clean it before use!
)) || (items.length && (
}> {items.map((item) => ( {item.amt} {item.extra} ))}
)) || (
{config.title} is empty.
)}
); };