feat: add simple spinner wrapper

This commit is contained in:
enes 2024-08-14 14:25:33 +02:00
parent 5ffedb68d6
commit 01ca81be2a
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import { PropsWithChildren } from 'react'
import styles from './style.module.scss'
export const Spinner = ({ children }: PropsWithChildren) => (
<div className={styles.spin}>{children}</div>
)

View File

@ -0,0 +1,12 @@
.spin {
animation: spin 1s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}