1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-24 23:54:22 +00:00
festa/components/Loading.tsx

16 lines
349 B
TypeScript
Raw Normal View History

2022-06-01 03:04:15 +00:00
import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
2022-06-04 03:13:19 +00:00
import { FestaIcon } from "./extensions/FestaIcon";
2022-06-01 03:04:15 +00:00
type LoadingProps = {
2022-06-01 16:54:59 +00:00
text: string
2022-06-01 03:04:15 +00:00
}
export function Loading(props: LoadingProps) {
return (
<span>
<FestaIcon icon={faAsterisk} spin/>
&nbsp;
2022-06-01 16:54:59 +00:00
{props.text}
2022-06-01 03:04:15 +00:00
</span>
)
}