mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
19 lines
No EOL
419 B
TypeScript
19 lines
No EOL
419 B
TypeScript
import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
|
|
import { useTranslation } from "next-i18next";
|
|
import { FestaIcon } from "./FestaIcon";
|
|
|
|
type LoadingProps = {
|
|
text: string
|
|
}
|
|
|
|
export function Loading(props: LoadingProps) {
|
|
const {t} = useTranslation()
|
|
|
|
return (
|
|
<span>
|
|
<FestaIcon icon={faAsterisk} spin/>
|
|
|
|
{props.text}
|
|
</span>
|
|
)
|
|
} |