import { useBackend } from '../backend'; import { Button, LabeledList, ProgressBar, Section, Table, Box } from '../components'; import { Fragment } from 'inferno'; import { LabeledListItem } from '../components/LabeledList'; export const SatelliteControl = props => { const { act, data } = useBackend(props); const satellites = data.satellites || []; return ( {data.meteor_shield && (
)}
{satellites.map(satellite => ( act('toggle', { id: satellite.id, })} /> ))}
); };