import styles from './style.module.scss' interface Props { desc?: string variant?: 'small' | 'default' } export const LoadingSpinner = (props: Props) => { const { desc, variant = 'default' } = props switch (variant) { case 'small': return (
) default: return (
{desc && (

{'Loading...'}

)}
) } }