import React from 'react' import classNames from 'classnames' import './index.scss' interface Props { color: string disabled: boolean type: string | null click: any } interface State { isPressed: boolean } class Button extends React.Component { static defaultProps: Props = { color: 'grey', disabled: false, type: null, click: () => {} } constructor(props: Props) { super(props) this.state = { isPressed: false, } } render() { let icon if (this.props.type === 'new') { icon = } else if (this.props.type === 'menu') { icon = } else if (this.props.type === 'link') { icon = } const classes = classNames({ Button: true, 'btn-pressed': this.state.isPressed, 'btn-disabled': this.props.disabled, [`btn-${this.props.color}`]: true }) return } } export default Button