From 8040a87759746c81694d2cbd1fb82039eb0e68f0 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 6 May 2023 00:02:56 -0600 Subject: Agregado dropdown menu de autenticación MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main_page_dropdown_menu.tsx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/components/main_page_dropdown_menu.tsx (limited to 'src/components/main_page_dropdown_menu.tsx') 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 ( + <> + + + + ); + } + + return ( + <> + + + + ); +} \ No newline at end of file -- cgit v1.2.3