/* eslint react/no-danger: "off" */ import { sortBy } from 'common/collections'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; export const GuestPass = (props, context) => { const { act, data } = useBackend(context); const { access, area, giver, giveName, reason, duration, mode, log, uid } = data; return ( {(mode === 1 && (
act('mode', { mode: 0 })} />}>
)) || (
act('mode', { mode: 1 })} />}>
)}
); };