2019-02-10 13:06:05 +00:00
|
|
|
import * as React from "react"
|
|
|
|
|
import { Button, MaybeElement } from "@blueprintjs/core"
|
2019-03-19 14:05:48 +00:00
|
|
|
import { ITextComponentProps } from "./TextComponent"
|
2019-03-21 12:10:32 +00:00
|
|
|
import { Container } from "./ContainerComponent"
|
2019-02-10 13:06:05 +00:00
|
|
|
|
2019-03-21 12:10:32 +00:00
|
|
|
class ButtonComponent extends React.Component<IButtonComponentProps> {
|
2019-02-10 13:06:05 +00:00
|
|
|
render() {
|
2019-03-19 14:05:48 +00:00
|
|
|
return (
|
2019-03-21 12:10:32 +00:00
|
|
|
<Container {...this.props}>
|
2019-08-26 12:41:21 +00:00
|
|
|
<Button icon={this.props.icon}>{this.props.text}</Button>
|
2019-03-21 12:10:32 +00:00
|
|
|
</Container>
|
2019-03-19 14:05:48 +00:00
|
|
|
)
|
2019-02-10 13:06:05 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface IButtonComponentProps extends ITextComponentProps {
|
|
|
|
|
icon?: MaybeElement
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-21 12:10:32 +00:00
|
|
|
export default ButtonComponent
|