mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
22 lines
504 B
TypeScript
22 lines
504 B
TypeScript
|
import { faAsterisk } from "@fortawesome/free-solid-svg-icons";
|
||
|
import { memo } from "react";
|
||
|
import { FestaIcon } from "../renderers/fontawesome";
|
||
|
|
||
|
|
||
|
export type LoadingTextInlineProps = {
|
||
|
text: string
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Component displaying an animated loading message for the user.
|
||
|
*/
|
||
|
export const LoadingTextInline = memo((props: LoadingTextInlineProps) => {
|
||
|
return (
|
||
|
<span>
|
||
|
<FestaIcon icon={faAsterisk} spin />
|
||
|
|
||
|
{props.text}
|
||
|
</span>
|
||
|
)
|
||
|
})
|