import { getAuth } from "@/auth/queries/getauth"; import { redirect } from "next/navigation"; import AdminSubNavigation from "../../../components/navigationbar/adminnavigation"; import SettingsSubMenuNavigation from "../../../components/navigationbar/settingsnavigation"; export default async function AuthenticatedLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { const { user } = await getAuth(); if (!user) { redirect("/"); } return ( <>

Settings

{children}
); }