webapp/src/components/_shared/Loading.tsx

20 lines
435 B
TypeScript
Raw Normal View History

import { clsx } from 'clsx'
2022-10-19 14:26:49 +00:00
import styles from './Loading.module.scss'
type Props = {
size?: 'small' | 'tiny'
}
export const Loading = (props: Props) => {
2022-10-19 14:26:49 +00:00
return (
<div
class={clsx(styles.container, {
[styles.small]: props.size === 'small',
2024-06-26 08:22:05 +00:00
[styles.tiny]: props.size === 'tiny'
})}
>
2024-06-24 17:50:27 +00:00
<div class={styles.icon} style={{ background: `url('/icons/arrows-rotate.svg')` }} />
2022-10-19 14:26:49 +00:00
</div>
)
}