import { useBackend } from '../backend'; import { Box, Button, LabeledList, ProgressBar, Section } from '../components'; import { Window } from '../layouts'; export const RogueZones = (props, context) => { const { act, data } = useBackend(context); const { timeout_percent, diffstep, difficulty, occupied, scanning, updated, debug, shuttle_location, shuttle_at_station, scan_ready, can_recall_shuttle, } = data; return (
{difficulty} act('recall_shuttle')}> Recall Shuttle )) || null }> {shuttle_location} {(occupied && ( WARNING: Area occupied by {occupied} personnel! )) || ( No personnel detected. )}
act('scan_for_new')}> Scan For Asteroids }> {(scanning && In progress.) || null} {(updated && !scanning && Updated shuttle destination!) || null} {(debug && ( Timeout Percent: {timeout_percent} Diffstep: {diffstep} Difficulty: {difficulty} Occupied: {occupied} Debug: {debug} Shuttle Location: {shuttle_location} Shuttle at station: {shuttle_at_station} Scan Ready: {scan_ready} )) || null}
); };