import React from 'react' import WeaponLabelIcon from '~components/WeaponLabelIcon' import gridImages from '../../images/summon-grid/*.jpg' import './index.css' interface Props { data: Summon onClick: () => void } const Element = ['null', 'wind', 'fire', 'water', 'earth', 'dark', 'light'] class SummonResult extends React.Component { render() { let imgSrc const summon = this.props.data if (process.env.NODE_ENV === 'development') { imgSrc = gridImages[summon.granblue_id] } else if (process.env.NODE_ENV === 'production') { imgSrc = `${process.env.SIERO_IMG_URL}/summon-grid/${summon.granblue_id}.jpg` } return (
  • {summon.name.en}
    {summon.name.en}
    ⭑⭑⭑{(summon.uncap.flb) ? : ''}{(summon.uncap.ulb) ? : ''}
  • ) } } export default SummonResult