import * as React from "react";
import { Button, MaybeElement } from "@blueprintjs/core";
import { TextComponentProps } from "./TextComponent";
import { Container } from "./ContainerComponent";

class ButtonComponent extends React.Component<ButtonComponentProps> {
  render() {
    return (
      <Container {...this.props}>
        <Button icon={this.props.icon}>{this.props.text}</Button>
      </Container>
    );
  }
}

interface ButtonComponentProps extends TextComponentProps {
  icon?: MaybeElement;
}

export default ButtonComponent;
