2022-02-04 00:13:04 +00:00
|
|
|
import clsx from 'clsx'
|
|
|
|
|
2022-05-18 16:08:31 +00:00
|
|
|
export function LoadingIndicator(props: {
|
|
|
|
className?: string
|
|
|
|
spinnerClassName?: string
|
|
|
|
}) {
|
|
|
|
const { className, spinnerClassName } = props
|
2022-02-04 00:13:04 +00:00
|
|
|
|
|
|
|
return (
|
2022-02-11 18:40:22 +00:00
|
|
|
<div className={clsx('flex items-center justify-center', className)}>
|
2022-02-04 00:13:04 +00:00
|
|
|
<div
|
2022-05-18 16:08:31 +00:00
|
|
|
className={clsx(
|
|
|
|
'spinner-border inline-block h-8 w-8 animate-spin rounded-full border-4 border-solid border-indigo-500 border-r-transparent',
|
|
|
|
spinnerClassName
|
|
|
|
)}
|
2022-02-04 00:13:04 +00:00
|
|
|
role="status"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|