/** * Source: https://github.com/Automattic/wp-calypso/blob/HEAD/client/components/spinner/index.jsx */ import clsx from 'clsx'; import PropTypes from 'prop-types'; import { PureComponent } from 'react'; export default class Spinner extends PureComponent { static propTypes = { className: PropTypes.string, size: PropTypes.number, }; static defaultProps = { size: 20, }; render() { const className = clsx( 'wpnc__spinner', this.props.className ); const style = { width: this.props.size, height: this.props.size, fontSize: this.props.size, // allows border-width to be specified in em units }; return (
{ /* eslint-disable-next-line wpcalypso/jsx-classname-namespace */ }
{ /* eslint-disable-next-line wpcalypso/jsx-classname-namespace */ }
); } }