Initial working commit
Some checks failed
Automated Container Build / build-and-push (push) Failing after 7s

This commit is contained in:
Elijah 2026-06-27 19:19:38 -07:00
parent 666ceb7325
commit b7ce314f01
105 changed files with 35510 additions and 11 deletions

View file

@ -0,0 +1,21 @@
import { isAuthenticated } from "@/lib/auth";
import { redirect } from "next/navigation";
import { Navbar } from "@/components/ui/Navbar";
export default async function ProtectedLayout({
children,
}: {
children: React.ReactNode;
}) {
const authed = await isAuthenticated();
if (!authed) {
redirect("/login");
}
return (
<div className="min-h-screen flex flex-col">
<Navbar />
<main className="flex-1">{children}</main>
</div>
);
}