mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-11 16:06:50 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
27
components/full-page-loader.tsx
Normal file
27
components/full-page-loader.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import clsx from "clsx";
|
||||
import * as React from "react";
|
||||
|
||||
import Spinner from "./icons/spinner.svg";
|
||||
|
||||
interface FullPageLoaderProps {
|
||||
className?: string;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const FullPageLoader: React.VoidFunctionComponent<FullPageLoaderProps> = ({
|
||||
children,
|
||||
className,
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
className={clsx(" h-full flex items-center justify-center", className)}
|
||||
>
|
||||
<div className="bg-indigo-500 text-white text-sm px-4 py-3 shadow-sm rounded-lg flex items-center">
|
||||
<Spinner className="h-5 mr-3 animate-spin" />
|
||||
{children}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default FullPageLoader;
|
Loading…
Add table
Add a link
Reference in a new issue