22 lines
495 B
TypeScript
22 lines
495 B
TypeScript
import NavbarPanel from "@/components/NavbarPanel";
|
|
import { cookies } from "next/headers";
|
|
import { redirect } from "next/navigation";
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
// const cookieStore = cookies();
|
|
// const token = cookieStore.get("Sootzani-Token");
|
|
// if (!token.value) {
|
|
// return redirect("/");
|
|
// }
|
|
return (
|
|
<>
|
|
<NavbarPanel />
|
|
<div className="mt-10 mx-auto container">{children}</div>
|
|
</>
|
|
);
|
|
}
|