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

27 lines
632 B
TypeScript
Raw Normal View History

2019-03-21 12:10:32 +00:00
import * as React from "react"
2019-09-05 17:47:50 +00:00
import { ComponentProps } from "./BaseComponent"
2019-03-21 12:10:32 +00:00
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-09-05 17:47:50 +00:00
export interface SpinnerComponentProps extends ComponentProps {
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