summaryrefslogtreecommitdiff
path: root/src/components/main_page_dropdown_menu.tsx
blob: 8c043a81adfa78111d3e64338f40b4bdd9b86841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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/>
    </>
  );
}