import classNames from 'classnames' ; import styles from '~/styles/gg-spinner.module.css' ; type SpinnerSize = 'lg' | 'xl' | 'xxl' ; type SpinnerProps = { size ? : SpinnerSize ; } ; const Spinner = ( { size } ) => ( < div className = { classNames ( styles [ 'gg-spinner' ] , styles [ size ] ? styles [ size ] : null ) } > < /div>); export default Spinner ; export const SpinnerFullPage = ( { size = 'xl' , } ) => ( < div className = "w-screen h-screen flex justify-center place-items-center" > < Spinner size = { size } /> < /div>);