import Footer from "@/app/(main)/footer" import Header from "@/app/(main)/header" import { ServerDataProvider } from "@/app/context/server-data-context" import { auth } from "@/auth" import { DashCommand } from "@/components/DashCommand" import { SignIn } from "@/components/SignIn" import getEnv from "@/lib/env-entry" import type React from "react" type DashboardProps = { children: React.ReactNode } export default function MainLayout({ children }: DashboardProps) { return (
{children}
) } async function AuthProtected({ children }: DashboardProps) { if (getEnv("SitePassword")) { const session = await auth() if (!session) { return } } return children }