import type { Metadata } from "next"; import { CheckCircle2 } from "lucide-react"; import Link from "next/link"; import { getTranslations } from "next-intl/server"; import { Container } from "@/components/layout/container"; import { MotionFade } from "@/components/motion-fade"; import { buildLocalizedMetadata } from "@/lib/metadata"; import { getLocalizedPath, resolveLocale } from "@/lib/locale"; import { AppCard } from "@/components/ui/app-card"; import { Button } from "@/components/ui/button"; import { CardContent } from "@/components/ui/card"; type SuccessPageProps = { params: { locale: string; }; }; export async function generateMetadata({ params: { locale }, }: SuccessPageProps): Promise { const localeKey = resolveLocale(locale); const t = await getTranslations({ locale: localeKey, namespace: "successPage" }); return await buildLocalizedMetadata({ locale: localeKey, pathname: "/success", title: t("title"), description: t("text"), }); } export default async function SuccessPage({ params: { locale } }: SuccessPageProps) { const localeKey = resolveLocale(locale); const t = await getTranslations({ locale: localeKey, namespace: "successPage" }); return ( <>

{t("title")}

{t("title")}

{t("text")}

{t("text")}

); }