import { localizedMetadata } from "@/lib/i18n/serverMetadata";
import type { Metadata } from "next";
import ProtectedRoute from "@/components/shared/ProtectedRoute";
import OrganizerProfile from "@/features/profile/components/OrganizerProfile";

const pageMetadata: Metadata = {
  title: "Organization profile",
  /* Signed-in or terminal screen: nothing here is useful in search
     results, and these routes ship their HTML to anyone because the
     guards are client-side. */
  robots: { index: false, follow: false },
};

export async function generateMetadata(): Promise<Metadata> {
  return localizedMetadata(pageMetadata);
}

export default function Page() {
  return (
    <ProtectedRoute userType={"organization"}>
      <OrganizerProfile />
    </ProtectedRoute>
  );
}
