{# The "+ New" button in the top bar. vars: plugin, groups [(label, items)], count, label #} {% import "tungsten/components/ui.html" as ui %}
{% call(part) ui.dropdown(width='w-64') %} {% if part == 'trigger' %} {% else %}
{% if count >= plugin.search_from %}
{% endif %}
{% for group_label, items in groups %}
{% if group_label %}

{{ group_label }}

{% endif %} {% for item in items %} {% set needle = item.label | lower | tojson %} {% if item.modal_url %} {% else %} {{ icon(item.icon, 'h-4 w-4 text-gray-400') }}{{ item.label }} {% endif %} {% endfor %}
{% endfor %}
{% if count >= plugin.search_from %}

{{ __('No matches') }}

{% endif %}
{% endif %} {% endcall %}