This commit is contained in:
Ivan Rezchikov
2026-07-11 21:21:38 +03:00
parent 18161f4604
commit 4c42b5aa1d
20 changed files with 369 additions and 260 deletions
+9
View File
@@ -6,6 +6,7 @@ import { DeleteDialog } from "./delete-dialog";
import { LogoutButton } from "./logout-button";
import { UpdateButton } from "./update-button";
import { AccountMenu } from "./account-menu";
import { Metadata } from "next";
function ProfileField({ label, value }: { label: string; value: string }) {
return (
@@ -16,6 +17,14 @@ function ProfileField({ label, value }: { label: string; value: string }) {
);
}
export const metadata: Metadata = {
title: "Profile",
robots: {
index: false,
follow: false,
},
};
export default async function Account() {
const user = await getCurrentUser();
if (!user) redirect("/");