import { Fragment } from 'inferno';
import { useBackend } from '../backend';
import { Box, Button, LabeledList, ProgressBar, Section } from '../components';
import { Window } from '../layouts';
export const OvermapShipSensors = (props, context) => {
return (
);
};
export const OvermapShipSensorsContent = (props, context) => {
const { act, data } = useBackend(context);
const { viewing, on, range, health, max_health, heat, critical_heat, status, contacts } = data;
return (
}>
{status}
{health} / {max_health}
{(heat < critical_heat * 0.5 && Temperature low.) ||
(heat < critical_heat * 0.75 && Sensor temperature high!) || (
TEMPERATURE CRITICAL: Disable or reduce power immediately!
)}
{(contacts.length &&
contacts.map((alien) => (
))) || No contacts on sensors.}
{(data.status === 'MISSING' && (
)) ||
null}
);
};