import ProfileInfoForm from "@/components/user-profile/profile-info-form";
import { getTranslations } from "next-intl/server";

export async function generateMetadata({
  params,
}: {
  params: Promise<{ locale: string }>;
}) {
  const { locale } = await params;
  const t = await getTranslations({ locale, namespace: "breadcrumb" });

  return {
    title: t("user-profile") || "User Profile",
  };
}

export default function UserProfilePage() {
  return <ProfileInfoForm />;
}
