19 lines
393 B
TypeScript
19 lines
393 B
TypeScript
|
import styles from './style.module.scss'
|
||
|
|
||
|
interface Props {
|
||
|
desc: string
|
||
|
}
|
||
|
|
||
|
export const LoadingSpinner = (props: Props) => {
|
||
|
const { desc } = props
|
||
|
|
||
|
return (
|
||
|
<div className={styles.loadingSpinnerOverlay}>
|
||
|
<div className={styles.loadingSpinnerContainer}>
|
||
|
<div className={styles.loadingSpinner}></div>
|
||
|
{desc && <span>{desc}</span>}
|
||
|
</div>
|
||
|
</div>
|
||
|
)
|
||
|
}
|