import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; export const Wires = (props, context) => { const { act, data } = useBackend(context); const wires = data.wires || []; const statuses = data.status || []; return (
{wires.map((wire) => (
{!!statuses.length && (
{statuses.map((status) => ( {status} ))}
)}
); };