import { useBackend } from '../backend';
import { Section, LabeledList, Button, NumberInput, ProgressBar, Grid, Input, Dropdown } from '../components';
import { Fragment } from 'inferno';
import { InterfaceLockNoticeBox } from './common/InterfaceLockNoticeBox';
export const Mule = props => {
const { act, data } = useBackend(props);
const locked = data.locked && !data.siliconUser;
const {
siliconUser,
on,
cell,
cellPercent,
load,
mode,
modeStatus,
haspai,
autoReturn,
autoPickup,
reportDelivery,
destination,
home,
id,
destinations = [],
} = data;
return (
act('power')}
/>
)} >
{mode}
{load || 'None'}
{!locked && (
{!!load && (
)}>
act('setid', { value: value })}
/>
act('destination', { value: val })}
/>
act('stop')} />
act('go')} />
act('destination', { value: val })} />
act('home')} />
act('autored')} />
act('autopick')}
/>
act('report')}
/>
)}
);
};