import { useBackend } from '../backend'; import { Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; export const Secbot = (props, context) => { const { act, data } = useBackend(context); const { on, open, locked, idcheck, check_records, check_arrest, arrest_type, declare_arrests, bot_patrolling, patrol, } = data; return (
act('power')}> {on ? 'On' : 'Off'} }> {open ? 'Open' : 'Closed'} {locked ? 'Locked' : 'Unlocked'}
{(!locked && (
{!!bot_patrolling && ( )}
)) || null}
); };