import { BooleanLike } from 'common/react'; import { useBackend } from '../backend'; import { Button, Box, Flex, LabeledList, Section } from '../components'; import { Window } from '../layouts'; type Data = { on: BooleanLike; allowPDAs: BooleanLike; allowCommunicators: BooleanLike; allowNewscasters: BooleanLike; logs: string[]; }; export const ExonetNode = (props, context) => { const { act, data } = useBackend(context); const { on, allowPDAs, allowCommunicators, allowNewscasters, logs } = data; return (
act('toggle_power')} /> }>
{logs.map((log, i) => ( {log} ))} {!logs || logs.length === 0 ? No logs found. : null}
); };