"use client"; import Link from "next/link"; import { useTranslation } from "react-i18next"; import Button from "@/lib/components/ui/Button"; import Card, { CardBody, CardHeader } from "@/lib/components/ui/Card"; import { useSupabase } from "@/lib/context/SupabaseProvider"; import { redirectToLogin } from "@/lib/router/redirectToLogin"; import { StripePricingOrManageButton, UserStatistics } from "./components"; import { ApiKeyConfig } from "./components/ApiKeyConfig"; import LanguageSelect from "./components/LanguageSelect/LanguageSelect"; import { LogoutModal } from "./components/LogoutCard/LogoutModal"; const UserPage = (): JSX.Element => { const { session } = useSupabase(); if (!session) { redirectToLogin(); } const { user } = session; const { t } = useTranslation(["translation", "user", "config", "chat"]); return ( <>

{t("accountSection", { ns: "config" })}

{t("email")}: {user.email}

{t("settings", { ns: "config" })}

{t("brainUsage", { ns: "user" })}

{t("apiKey", { ns: "config" })}

); }; export default UserPage;