import { BooleanLike } from 'common/react'; import { useBackend } from '../backend'; import { Button, LabeledList, NoticeBox, Section } from '../components'; import { Window } from '../layouts'; type Data = { tank_one: string; tank_two: string; attached_device: string; valve: BooleanLike; }; export const TransferValve = (props, context) => { const { act, data } = useBackend(context); const { tank_one, tank_two, attached_device, valve } = data; return (
act('device')} /> }> {attached_device ? (
{tank_one ? (
{tank_two ? (
); };