<nav class="navbar navbar-expand-lg bg-body-tertiary">
  <div class="container">
    <a class="navbar-brand" href="#">Callout.dev</a>
    <button
      class="navbar-toggler"
      type="button"
      data-bs-toggle="collapse"
      data-bs-target="#navbarSupportedContent"
      aria-controls="navbarSupportedContent"
      aria-expanded="false"
      aria-label="Toggle navigation"
    >
      <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav me-auto mb-2 mb-lg-0">
        <li class="nav-item">
          <a
            class="nav-link{% if nav_state.navbar_active_item == "teams" %} active{% endif %}"
            {% if nav_state.navbar_active_item == "teams" %}aria-current="page"{% endif %}
            href="{{ base_path }}/teams"
          >
            Teams
          </a>
        </li>
        {% if let Some(team_id) = nav_state.team_id %}
          <li class="nav-item">
            <a
              class="nav-link{% if nav_state.navbar_active_item == "projects" %} active{% endif %}"
              {% if nav_state.navbar_active_item == "projects" %}aria-current="page"{% endif %}
              href="{{ base_path }}/teams/{{ team_id.simple() }}/projects"
            >
              Projects
            </a>
          </li>
          <li class="nav-item">
            <a
              class="nav-link{% if nav_state.navbar_active_item == "channels" %} active{% endif %}"
              {% if nav_state.navbar_active_item == "channels" %}aria-current="page"{% endif %}
              href="{{ base_path }}/teams/{{ team_id.simple() }}/channels"
            >
              Channels
            </a>
          </li>
        {% endif %}
      </ul>
      <ul class="navbar-nav ms-auto mb-2 mb-lg-0 profile-menu">
        <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
            Account
          </a>
          <ul class="dropdown-menu">
            <li><a class="dropdown-item" href="#">Settings</a></li>
            <li><hr class="dropdown-divider"></li>
            <li><a class="dropdown-item" href="#">Log out</a></li>
          </ul>
        </li>
      </ul>
    </div>
  </div>
</nav>
