import { Fragment } from 'inferno'; import { useBackend } from '../../backend'; import { Box, Button, LabeledList } from '../../components'; export const OvermapFlightData = (props, context) => { const { act, data } = useBackend(context); const { disableLimiterControls } = props; const { ETAnext, speed, speed_color, accel, heading, accellimit } = data; // 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 ( {ETAnext} {speed} Gm/h {accel} Gm/h {heading}° {(!disableLimiterControls && ( )) || null} ); }; export const OvermapPanControls = (props, context) => { const { act } = useBackend(context); const { disabled, actToDo, selected = (val) => false } = props; return (