<% provide(:head_title, t("search.index.head_title")) %>

<div id="GlobalSearch" class="contents">
  <global_search
    query="<%= @display_query %>"
    :search-url="'<%= search_path(format: :json) %>'"
    teams-url="<%= visible_teams_teams_path %>"
    users-url="<%= visible_users_teams_path %>"
    :single-team="<%= current_user.teams.count == 1 %>"
    :current-team="<%= current_team.id %>"
  />
</div>

<%= javascript_include_tag "vue_global_search" %>
