2023-07-02 05:08:42 +00:00
|
|
|
import { clsx } from 'clsx'
|
2022-10-19 14:26:49 +00:00
|
|
|
|
2023-11-14 15:10:00 +00:00
|
|
|
import styles from './Loading.module.scss'
|
|
|
|
|
2023-07-02 05:08:42 +00:00
|
|
|
type Props = {
|
2023-08-04 15:59:36 +00:00
|
|
|
size?: 'small' | 'tiny'
|
2023-07-02 05:08:42 +00:00
|
|
|
}
|
|
|
|
export const Loading = (props: Props) => {
|
2022-10-19 14:26:49 +00:00
|
|
|
return (
|
2023-07-02 05:08:42 +00:00
|
|
|
<div
|
|
|
|
class={clsx(styles.container, {
|
2023-08-04 15:59:36 +00:00
|
|
|
[styles.small]: props.size === 'small',
|
2024-06-26 08:22:05 +00:00
|
|
|
[styles.tiny]: props.size === 'tiny'
|
2023-07-02 05:08:42 +00:00
|
|
|
})}
|
|
|
|
>
|
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>
|
|
|
|
)
|
|
|
|
}
|