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"
|
|
|
|
|
import PositionContainer from "./PositionContainer"
|
2019-02-10 13:06:05 +00:00
|
|
|
|
|
|
|
|
class ButtomComponent extends React.Component<IButtonComponentProps> {
|
|
|
|
|
render() {
|
2019-03-19 14:05:48 +00:00
|
|
|
return (
|
|
|
|
|
<PositionContainer {...this.props}>
|
|
|
|
|
<Button text={this.props.text} icon={this.props.icon} />
|
|
|
|
|
</PositionContainer>
|
|
|
|
|
)
|
2019-02-10 13:06:05 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface IButtonComponentProps extends ITextComponentProps {
|
|
|
|
|
icon?: MaybeElement
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ButtomComponent
|