import { Section, Box, Button, NoticeBox, LabeledList, NumberInput } from '../components'; import { useBackend } from '../backend'; import { Fragment } from 'inferno'; import { NtosWindow } from '../layouts'; export const NtosNetMonitor = (props, context) => { const { act, data } = useBackend(context); const { ntnetrelays, ntnetstatus, config_softwaredownload, config_peertopeer, config_communication, config_systemcontrol, idsalarm, idsstatus, ntnetmaxlogs, maxlogs, minlogs, banned_nids, ntnetlogs = [], } = data; return ( WARNING: Disabling wireless transmitters when using a wireless device may prevent you from reenabling them!
act('toggleWireless')} /> }> {ntnetrelays ? ( {ntnetrelays} ) : ( 'No Relays Connected' )}
act('toggle_function', { id: '1' })} /> } /> act('toggle_function', { id: '2' })} /> } /> act('toggle_function', { id: '3' })} /> } /> act('toggle_function', { id: '4' })} /> } />
{!!idsalarm && ( NETWORK INCURSION DETECTED Abnormal activity has been detected in the network. Check system logs for more information )} }> {banned_nids.join(', ') || 'None'}
); };