first commit

This commit is contained in:
2026-03-26 08:11:29 +03:30
parent f9e3d66a19
commit b8f6526ba4
225 changed files with 18865 additions and 151 deletions

View File

@@ -0,0 +1,27 @@
"use client";
import {useMe} from "@/hooks";
import Loader from "./Loader";
export default function AuthGuard({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
const {isLoading} = useMe();
if (isLoading)
return (
<div className="h-screen flex items-center justify-center w-full">
<div className="flex items-center justify-center gap-x-4 mx-auto">
<span>لطفا منتظر بمانید</span>
<span>
<Loader />
</span>
</div>
</div>
);
return children;
}