import React from "react"; import {FancyBox} from "../../components/fancyBox"; import PropTypes from "prop-types"; import Octicon, {ArrowLeft} from "@primer/octicons-react"; export class PanelChoosePower extends React.Component { render() { return (
{(() => { const choice = []; for (let i = 0; i < this.props.powers.length; ++i) { choice.push( ); } return choice; })()}
); } } PanelChoosePower.propTypes = { backward: PropTypes.func.isRequired, forward: PropTypes.func.isRequired, cancel: PropTypes.func.isRequired, onUpdateParams: PropTypes.func.isRequired, powers: PropTypes.arrayOf(PropTypes.string).isRequired };