import { Fragment } from 'inferno';
import { useBackend } from '../backend';
import { Box, Button, NoticeBox, LabeledList, Section } from '../components';
import { Window } from '../layouts';
export const TelecommsMachineBrowser = (props, context) => {
const { act, data } = useBackend(context);
const { network, temp, machinelist, selectedMachine } = data;
return (
{temp ? (
{temp.text}
) : null}
{machinelist && machinelist.length ? (
) : (
)}
);
};
const TelecommsBrowser = (props, context) => {
const { act, data } = useBackend(context);
const { list, title, showBack } = props;
return (
act('mainmenu')} />}>
Linked entities
{list.length ? (
list.map((machine) => (
act('view', { id: machine.id })} />
))
) : (
No links detected.
)}
);
};