import { Button } from "@mui/joy"; import useCurrentUser from "@/hooks/useCurrentUser"; import { useTranslate } from "@/utils/i18n"; import showChangePasswordDialog from "../ChangePasswordDialog"; import showUpdateAccountDialog from "../UpdateAccountDialog"; import UserAvatar from "../UserAvatar"; import AccessTokenSection from "./AccessTokenSection"; const MyAccountSection = () => { const t = useTranslate(); const user = useCurrentUser(); return (

{t("setting.account-section.title")}

{user.nickname} ({user.username})
); }; export default MyAccountSection;