import { Window } from '../layouts'; import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, LabeledList, ProgressBar, Section } from '../components'; export const ResleevingPod = (model, context) => { const { data } = useBackend(context); const { occupied, name, health, maxHealth, stat, mindStatus, mindName, resleeveSick, initialSick } = data; return (
{occupied ? ( {name} {stat === 2 ? ( DEAD ) : stat === 1 ? ( Unconscious ) : ( {health}% )} {mindStatus ? 'Present' : 'Missing'} {mindStatus ? {mindName} : ''} {resleeveSick ? ( Warning: Resleeving Sickness detected. {initialSick ? ( {' '} Motion Sickness also detected. Please allow the newly resleeved person a moment to get their bearings. This warning will disappear when Motion Sickness is no longer detected. ) : ( '' )} ) : ( '' )} ) : ( Unoccupied. )}
); };