import PropTypes from 'prop-types' ; import Gtk from '../gtk' ; import Element from './Element' ; export default class Spinner extends Element { static propTypes = { active : PropTypes . bool } ; static defaultProps = { active : null } ; constructor ( props = { } ) { super ( new Gtk . Spinner ( ) , props ) ; } start ( ) { return this . node . start ( ) ; } stop ( ) { return this . node . stop ( ) ; } }