12 lines
316 B
TypeScript
12 lines
316 B
TypeScript
import { BodyText } from '../Text';
|
|
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;
|