feat(notifications): add account-scoped inbox and persistent preferences
This commit is contained in:
1 parent
8f55ff2d17
commit
1eee6661f9
39 files changed
+1559
-3
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { getTranslations } from "next-intl/server";
|
||||
import { NotificationCenter } from "@/features/notifications/notification-center";
|
||||
import { auth } from "@/lib/auth";
|
||||
import { sessionUserId } from "@/lib/auth/session-user";
|
||||
export async function generateMetadata() {
|
||||
const t = await getTranslations("pages.notifications");
|
||||
return { title: t("title"), robots: { index: false, follow: false } };
|
||||
}
|
||||
export default async function NotificationsPage() {
|
||||
const uid = sessionUserId((await auth())?.user?.id);
|
||||
if (!uid) redirect("/login");
|
||||
return <NotificationCenter userId={uid} />;
|
||||
}
|
||||
Reference in new issue
Block a user