import { toTitleCase } from 'common/string'; import { Fragment } from 'inferno'; import { useBackend } from '../backend'; import { Box, Button, LabeledList, Section, Table } from '../components'; export const LaborClaimConsole = props => { const { act, data } = useBackend(props); const { can_go_home, id_points, ores, status_info, unclaimed_points, } = data; return (
{status_info}
Material Value {ores.map(ore => ( {toTitleCase(ore.ore)} {ore.value} ))}
); };