anvil/striker-ui/components/Anvils/Anvil.tsx

12 lines
316 B
TypeScript
Raw Normal View History

import { BodyText } from '../Text';
2021-04-29 19:43:20 +00:00
import anvilState from '../../lib/consts/ANVILS';
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => (
<>
<BodyText text={anvil.anvil_name} />
<BodyText text={anvilState.get(anvil.anvil_state) || 'State unavailable'} />
</>
);
export default Anvil;