summaryrefslogtreecommitdiff
path: root/src/components/main_page_dropdown_menu.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main_page_dropdown_menu.tsx')
-rw-r--r--src/components/main_page_dropdown_menu.tsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/components/main_page_dropdown_menu.tsx b/src/components/main_page_dropdown_menu.tsx
new file mode 100644
index 0000000..8c043a8
--- /dev/null
+++ b/src/components/main_page_dropdown_menu.tsx
@@ -0,0 +1,24 @@
+import UserAccountButton from "./user_account_button";
+import { LoginForm } from "./forms/login_form";
+import Token from "../lib/token";
+import UserAccountDropdownMenu from "./user_account_dropdown_menu";
+
+export default function MainPageDropdownMenu() {
+ const token = new Token();
+
+ if(token.present()) {
+ return (
+ <>
+ <UserAccountButton token={token}/>
+ <UserAccountDropdownMenu/>
+ </>
+ );
+ }
+
+ return (
+ <>
+ <UserAccountButton token={token}/>
+ <LoginForm/>
+ </>
+ );
+} \ No newline at end of file