webapp/src/components/_shared/Loading.tsx
Ilya Y 784bb435c3
Feature/lint (#317)
* prettier

---------

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
2023-11-14 18:10:00 +03:00

20 lines
378 B
TypeScript

import { clsx } from 'clsx'
import styles from './Loading.module.scss'
type Props = {
size?: 'small' | 'tiny'
}
export const Loading = (props: Props) => {
return (
<div
class={clsx(styles.container, {
[styles.small]: props.size === 'small',
[styles.tiny]: props.size === 'tiny',
})}
>
<div class={styles.icon} />
</div>
)
}