import React from 'react' ; import classnames from 'classnames' ; import styles from './styles.scss' ; type SpinnerProps = { className ? : string ; ringWidth ? : number ; } ; const Spinner = ( { className , ringWidth } ) => { return ( < div className = { classnames ( styles . root , className ) } data - sign = "Spinner" > < div className = { classnames ( styles . padding ) } /> < div className = { styles . spinner } style = { { borderWidth : ringWidth , } } /> < /div>); } ; Spinner . defaultProps = { className : null , ringWidth : 8 , } ; export default Spinner ;