import { map } from 'common/collections'; import { useBackend } from '../backend'; import { Button, NoticeBox, Section, Table } from '../components'; export const SmartVend = props => { const { act, data } = useBackend(props); return (
act('Dry')}> {data.drying ? 'Stop drying' : 'Dry'} )}> {data.contents.length === 0 && ( Unfortunately, this {data.name} is empty. ) || ( Item {data.verb ? data.verb : 'Dispense'} {map((value, key) => ( {value.name} {value.amount}
)}
); };