import { redirect } from "next/navigation"; import { auth } from "@/lib/auth"; import { getMessages } from "next-intl/server"; import { NextIntlClientProvider } from "next-intl"; import { ProfileCard } from "@/components/auth/ProfileCard"; export default async function ProfilePage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const session = await auth(); if (!session?.user) { redirect(`/${locale}/login`); } const messages = await getMessages(); return (
); }