"use client"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@hexahost/ui"; import { useTranslations } from "next-intl"; import { Link } from "@/i18n/navigation"; import { useAuth } from "@/components/providers/auth-provider"; export function ProfileContent() { const t = useTranslations("account.profile"); const { user, isLoading } = useAuth(); if (isLoading) { return

{t("loading")}

; } if (!user) { return

{t("notSignedIn")}

; } return (

{t("title")}

{t("subtitle")}

{t("accountInfo")} {t("accountInfoDescription")}
{t("fields.email")} {user.email}
{t("fields.username")} {user.username}
{user.displayName ? (
{t("fields.displayName")} {user.displayName}
) : null}
{t("fields.emailVerified")} {user.emailVerified || user.emailVerifiedAt ? t("yes") : t("no")}
{t("fields.twoFactor")} {user.twoFactorEnabled ? t("enabled") : t("disabled")}

{t("securityHint")}{" "} {t("securityLink")}

); }