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