<%# locals: (form:) %>

<div class="p-2 space-y-3">
  <div class="flex items-center gap-3" data-filter-name="income">
    <%= form.check_box :types,
                           {
                             multiple: true,
                             checked: @q[:types]&.include?("income"),
                             class: "maybe-checkbox maybe-checkbox--light"
                           },
                           "income",
                           nil %>
    <%= form.label :types, t(".income"), value: "income", class: "text-sm text-gray-900" %>
  </div>
  <div class="flex items-center gap-3" data-filter-name="expense">
    <%= form.check_box :types,
                           {
                             multiple: true,
                             checked: @q[:types]&.include?("expense"),
                             class: "maybe-checkbox maybe-checkbox--light"
                           },
                           "expense",
                           nil %>
    <%= form.label :types, t(".expense"), value: "expense", class: "text-sm text-gray-900" %>
  </div>
  <div class="flex items-center gap-3" data-filter-name="transfer">
    <%= form.check_box :types,
                           {
                             multiple: true,
                             checked: @q[:types]&.include?("transfer"),
                             class: "maybe-checkbox maybe-checkbox--light"
                           },
                           "transfer",
                           nil %>
    <%= form.label :types, t(".transfer"), value: "transfer", class: "text-sm text-gray-900" %>
  </div>
</div>
