import AccessPageClient from "@/components/pam/AccessPageClient";
import { requireAuth } from "@/auth";

export const metadata = {
  title: "Privileged Access — GSC My",
};

export default async function AccessPage({
  searchParams,
}: {
  searchParams: Promise<{ need?: string }>;
}) {
  await requireAuth();
  const sp = await searchParams;
  return <AccessPageClient needRole={sp.need ?? null} />;
}
