<%= form_tag url_for(), method: :get, class: "search__collection", data: {turbo_stream: local_assigns[:turbo_stream]} do %>
  
  <%= link_to 'close', params.permit(:sort, :reverse, :category, :tag), class: 'icon reset__search', data: {turbo_stream: local_assigns[:turbo_stream]} %>

  <div>
    <%= text_field_tag :q, params[:q], spellcheck: false, placeholder: t(:'ui.search') %> 
    <%= button_tag 'search', id: nil, name: nil, class: 'icon' %>
  </div>
  
  <%- [:sort, :reverse, :category, :tag].each do |k| -%>
    <%= hidden_field_tag k, params[k] if params[k] %>
  <% end %>

<%- end -%>
