import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section } from '../components'; import { Window } from '../layouts'; type Data = { current: { index: string; time: string; coords: string; depth: number; clearance: number; dissonance_spread: number; material: string; }; positive_locations: { index: string; time: string; coords: string }[]; }; export const XenoarchDepthScanner = (props, context) => { const { act, data } = useBackend(context); const { current, positive_locations } = data; return ( {(Object.keys(current).length && (
act('clear', { index: current.index })} /> }> {current.time} {current.coords} {current.depth} cm {current.clearance} cm {current.dissonance_spread} {current.material}
)) || null}
act('clear')} /> }> {(positive_locations.length && positive_locations.map((loc) => ( ))) || No traces found.}
); };