diff --git a/src/components/Navbar/components/WargamingAccountName.tsx b/src/components/Navbar/components/WargamingAccountName.tsx
new file mode 100644
index 000000000..d7cca7807
--- /dev/null
+++ b/src/components/Navbar/components/WargamingAccountName.tsx
@@ -0,0 +1,22 @@
+import { Text } from '@radix-ui/themes';
+import { use, useMemo } from 'react';
+import { getAccountInfo } from '../../../core/blitz/getAccountInfo';
+import { idToRegion } from '../../../core/blitz/idToRegion';
+import * as App from '../../../stores/app';
+
+export function WargamingAccountName() {
+ const wargaming = App.use((state) => state.logins.wargaming!);
+ const promise = useMemo(
+ () =>
+ getAccountInfo(idToRegion(wargaming.id), wargaming.id, [], {
+ access_token: wargaming.token,
+ }).then((data) => {
+ console.log(data);
+ return data?.nickname as string | undefined;
+ }),
+ [wargaming],
+ );
+ const nickname = use(promise);
+
+ return nickname ?? Unknown Account;
+}
diff --git a/src/components/Navbar/index.tsx b/src/components/Navbar/index.tsx
index b881b87a1..16d65b591 100644
--- a/src/components/Navbar/index.tsx
+++ b/src/components/Navbar/index.tsx
@@ -18,10 +18,11 @@ import {
Popover,
ScrollArea,
Separator,
+ Skeleton,
Text,
} from '@radix-ui/themes';
import { usePathname } from 'next/navigation';
-import { Fragment, useState } from 'react';
+import { Fragment, Suspense, useState } from 'react';
import { BRANCH_NAMES } from '../../app/components/Hero/constants';
import { homeTool, TOOLS } from '../../constants/tools';
import { imgur, ImgurSize } from '../../core/blitzkit/imgur';
@@ -31,6 +32,7 @@ import { PatreonIcon } from '../../icons/Patreon';
import { WargamingIcon } from '../../icons/Wargaming';
import * as App from '../../stores/app';
import { Link } from '../Link';
+import { WargamingAccountName } from './components/WargamingAccountName';
import { WargamingLoginButton } from './components/WargamingLoginButton';
import * as styles from './index.css';
@@ -194,7 +196,13 @@ export default function Navbar() {
{logins.wargaming && (
- Wargaming
+
+ }
+ >
+
+
+