import { Fragment } from 'inferno';
import { useBackend } from '../backend';
import { Box, Button, Flex, LabeledList, Section, Table } from '../components';
import { Window } from '../layouts';
import { OvermapFlightData, OvermapPanControls } from './common/Overmap';
export const OvermapHelm = (props, context) => {
return (
);
};
export const OvermapHelmContent = (props, context) => {
return (
);
};
export const OvermapFlightDataWrap = (props, context) => {
const { act, data } = useBackend(context);
// While, yes, this is a strange choice to use fieldset over Section
// just look at how pretty the legend is, sticking partially through the border ;///;
return (
);
};
const OvermapManualControl = (props, context) => {
const { act, data } = useBackend(context);
const { canburn, manual_control } = data;
return (
);
};
const OvermapAutopilot = (props, context) => {
const { act, data } = useBackend(context);
const { dest, d_x, d_y, speedlimit, autopilot, autopilot_disabled } = data;
if (autopilot_disabled) {
return (
);
}
return (
);
};
const OvermapNavComputer = (props, context) => {
const { act, data } = useBackend(context);
const { sector, s_x, s_y, sector_info, landed, locations } = data;
return (
{sector}
{s_x} : {s_y}
{sector_info}
{landed}
Name
Coordinates
Actions
{locations.map((loc) => (
{loc.name}
{loc.x} : {loc.y}
))}
);
};