import { map } from 'common/collections'; import { useBackend } from '../backend'; import { Button, Box, NoticeBox, Section, Table } from '../components'; import { Window } from '../layouts'; export const SmartVend = (props, context) => { const { act, config, data } = useBackend(context); return (
{(data.secure && ( {data.locked === -1 ? ( Sec.re ACC_** //):securi_nt.diag=>##'or 1=1'%($... ) : ( Secure Access: Please have your identification ready. )} )) || null} {(data.contents.length === 0 && Unfortunately, this {config.title} is empty.) || ( Item Amount Dispense {map((value, key) => ( {value.name} {value.amount} in stock
)}
); };