import { decodeHtmlEntities } from 'common/string'; import { useBackend } from '../../backend'; import { Button, LabeledList, NumberInput, Section } from '../../components'; export const Vent = (props, context) => { const { vent } = props; const { act } = useBackend(context); const { id_tag, long_name, power, checks, excheck, incheck, direction, external, internal, extdefault, intdefault } = vent; return (
act('power', { id_tag, val: Number(!power), }) } /> }>
); }; export const Scrubber = (props, context) => { const { scrubber } = props; const { act } = useBackend(context); const { long_name, power, scrubbing, id_tag, widenet, filters } = scrubber; return (
act('power', { id_tag, val: Number(!power), }) } /> }>
); };