<div id="top-menu-bar">
  <div id="top-menu-bar-left">
    {% include "../assets/logo.html" %}
    <h2>&nbsp; AppFlowy Cloud &nbsp;</h2>

    <div
      hx-target="#sidebar-content"
      hx-get="/web/components/user/user"
      class="button red"
    >
      {{ user.email }}
    </div>
  </div>

  <div id="top-menu-bar-right">
    <div id="adminBtn" class="button cyan">User</div>
    <script>
      document
        .getElementById("adminBtn")
        .addEventListener("click", function () {
          window.location.href = "/web/home";
        });
    </script>

    <div class="button yellow" id="logoutBtn" hx-post="/web-api/logout">
      Logout
    </div>
  </div>
</div>
