import { useBackend } from '../backend'; import { Window } from '../layouts'; import { Button, Section, Table } from '../components'; import { BooleanLike } from 'common/react'; export const RustFuelControl = () => ( ); type Data = { fuels: { name: string; x; y; z; active: BooleanLike; deployed: BooleanLike; ref: string; fuel_amt; fuel_type }[]; }; export const RustFuelContent = (props, context) => { const { act, data } = useBackend(context); const { fuels } = data; return (
act('set_tag')} />}> Name Position Status Remaining Fuel Fuel Rod Composition {fuels.map((fuel) => ( {fuel.name} {fuel.x}, {fuel.y}, {fuel.z}
); };