You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
354 B
15 lines
354 B
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;
|
|
|