|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { Dropdown, Menu, MenuButton, MenuItem } from "@mui/joy";
|
|
|
|
|
import { LogOutIcon, User2Icon, SmileIcon } from "lucide-react";
|
|
|
|
|
import { ArchiveIcon, LogOutIcon, User2Icon, SquareUserIcon } from "lucide-react";
|
|
|
|
|
import { authServiceClient } from "@/grpcweb";
|
|
|
|
|
import useCurrentUser from "@/hooks/useCurrentUser";
|
|
|
|
|
import useNavigateTo from "@/hooks/useNavigateTo";
|
|
|
|
@ -47,9 +47,13 @@ const UserBanner = (props: Props) => {
|
|
|
|
|
</MenuButton>
|
|
|
|
|
<Menu placement="bottom-start" style={{ zIndex: "9999" }}>
|
|
|
|
|
<MenuItem onClick={() => navigateTo(`/u/${encodeURIComponent(currentUser.username)}`)}>
|
|
|
|
|
<SmileIcon className="w-4 h-auto opacity-60" />
|
|
|
|
|
<SquareUserIcon className="w-4 h-auto opacity-60" />
|
|
|
|
|
<span className="truncate">{t("common.profile")}</span>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem onClick={() => navigateTo(Routes.ARCHIVED)}>
|
|
|
|
|
<ArchiveIcon className="w-4 h-auto opacity-60" />
|
|
|
|
|
<span className="truncate">{t("common.archived")}</span>
|
|
|
|
|
</MenuItem>
|
|
|
|
|
<MenuItem onClick={handleSignOut}>
|
|
|
|
|
<LogOutIcon className="w-4 h-auto opacity-60" />
|
|
|
|
|
<span className="truncate">{t("common.sign-out")}</span>
|
|
|
|
|