]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/rounds/SeedCode.js
display seed code
[alttp.git] / resources / js / components / rounds / SeedCode.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 import ZeldaIcon from '../common/ZeldaIcon';
5
6 const SeedCode = ({ code }) =>
7 <span className="seed-code">
8         {code.map((symbol, index) =>
9                 <ZeldaIcon key={`${symbol}.${index}`} name={symbol} />
10         )}
11 </span>;
12
13 SeedCode.propTypes = {
14         code: PropTypes.arrayOf(PropTypes.string),
15 };
16
17 export default SeedCode;