anvil/striker-ui/components/Anvils/Anvil.tsx
2021-06-04 12:11:49 -04:00

16 lines
354 B
TypeScript

import { BodyText } from '../Text';
import anvilState from '../../lib/consts/ANVILS';
const Anvil = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => {
return (
<>
<BodyText text={anvil.anvil_name} />
<BodyText
text={anvilState.get(anvil.anvil_state) || 'State unavailable'}
/>
</>
);
};
export default Anvil;