import type { ReactNode } from "react";
import { getViewerContext } from "@/lib/auth";
import { AppShell } from "@/components/layout/app-shell";

export default async function ProtectedLayout({ children }: { children: ReactNode }) {
  const viewer = await getViewerContext();

  return <AppShell viewer={viewer}>{children}</AppShell>;
}
