webapp/src/components/_shared/Loading.tsx

20 lines
378 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',
[styles.tiny]: props.size === 'tiny',
})}
>
2022-10-19 14:26:49 +00:00
<div class={styles.icon} />
</div>
)
}