import { AppShell } from "@/components/layout/app-shell";
import { requirePageUser } from "@/lib/auth/guards";
export default async function WorkspaceLayout({
  children,
  params,
}: {
  children: React.ReactNode;
  params: Promise<{ workspaceSlug: string }>;
}) {
  await requirePageUser();
  const { workspaceSlug } = await params;
  return <AppShell workspaceSlug={workspaceSlug}>{children}</AppShell>;
}
