PromucFlow_constructor/app/client/src/editorComponents/SpinnerComponent.tsx

27 lines
631 B
TypeScript
Raw Normal View History

2019-03-21 12:10:32 +00:00
import * as React from "react"
import { IComponentProps } from "./BaseComponent"
import { Spinner, Intent } from "@blueprintjs/core"
import { Container } from "./ContainerComponent"
2019-03-15 12:53:45 +00:00
2019-08-29 11:22:09 +00:00
class SpinnerComponent extends React.Component<SpinnerComponentProps> {
2019-03-15 12:53:45 +00:00
render() {
return (
2019-03-21 12:10:32 +00:00
<Container {...this.props}>
2019-03-15 12:53:45 +00:00
<Spinner
size={this.props.size}
value={this.props.value}
intent={this.props.intent}
/>
2019-03-21 12:10:32 +00:00
</Container>
)
2019-03-15 12:53:45 +00:00
}
}
2019-08-29 11:22:09 +00:00
export interface SpinnerComponentProps extends IComponentProps {
2019-03-21 12:10:32 +00:00
size?: number
value?: number
intent?: Intent
2019-03-15 12:53:45 +00:00
}
2019-03-21 12:10:32 +00:00
export default SpinnerComponent