1 import PropTypes from 'prop-types';
2 import React from 'react';
4 import ZeldaIcon from '../common/ZeldaIcon';
6 const SeedCode = ({ code, game }) =>
7 <span className={`seed-code game-${game}`}>
8 {code.map(game === 'smr'
9 ? (symbol, index) => <span key={`${symbol}.${index}`}>{symbol}</span>
10 : (symbol, index) => <ZeldaIcon key={`${symbol}.${index}`} name={symbol} />
14 SeedCode.propTypes = {
15 code: PropTypes.arrayOf(PropTypes.string),
16 game: PropTypes.string,
19 export default SeedCode;