import React from "react" import PropTypes from "prop-types" export default class AuthorizeBtn extends React.Component { static propTypes = { onClick: PropTypes.func, isAuthorized: PropTypes.bool, showPopup: PropTypes.bool, getComponent: PropTypes.func.isRequired } render() { let { isAuthorized, showPopup, onClick, getComponent } = this.props //must be moved out of button component const AuthorizationPopup = getComponent("authorizationPopup", true) const LockAuthIcon = getComponent("LockAuthIcon", true) const UnlockAuthIcon = getComponent("UnlockAuthIcon", true) return (
{ showPopup && }
) } }