import React, { Component } from 'react'; import App from '../App' export default class activeButton extends Component { render(){ switch (this.props.type) { case 'register': if(this.props.input != ''){ return( ) } else { return( ) } case 'createRoom': if(this.props.capacityInput !== '' && this.props.capacityInput <= 25 && this.props.capacityInput>=2 && this.props.capacityInput.length <= 2){ return( ) } else { return( ) } case 'inputWord': if(this.props.input != '' && this.props.input <= 20){ return( ) } else { return( ) } } } }