<%= render DS::Menu.new do |menu| %>
<% menu.with_item(variant: "link", text: t(".new_rule"), href: new_rule_path(resource_type: "transaction"), icon: "plus", data: { turbo_frame: :modal }) %>
<% menu.with_item(variant: "link", text: t(".edit_rules"), href: rules_path, icon: "git-branch", data: { turbo_frame: :_top }) %>
<% menu.with_item(variant: "link", text: t(".edit_categories"), href: categories_path, icon: "shapes", data: { turbo_frame: :_top }) %>
<% menu.with_item(variant: "link", text: t(".edit_tags"), href: tags_path, icon: "tags", data: { turbo_frame: :_top }) %>
<% menu.with_item(variant: "link", text: t(".edit_merchants"), href: family_merchants_path, icon: "store", data: { turbo_frame: :_top }) %>
<% menu.with_item(variant: "link", text: t(".edit_imports"), href: imports_path, icon: "hard-drive-upload", data: { turbo_frame: :_top }) %>
<% menu.with_item(variant: "link", text: t(".import"), href: new_import_path, icon: "download", data: { turbo_frame: "modal", class_name: "md:!hidden" }) %>
<% if @uncategorized_count > 0 %>
<% menu.with_item(variant: "link", text: t(".categorize_button", count: @uncategorized_count), href: transactions_categorize_path, icon: "tag", data: { turbo_frame: :_top }) %>
<% end %>
<% end %>
<%= render DS::Link.new(
text: t(".import"),
icon: "download",
variant: "outline",
href: new_import_path,
frame: :modal,
) %>
<%= render DS::Link.new(
text: t(".new_transaction"),
icon: "plus",
variant: "primary",
href: new_transaction_path,
frame: :modal,
class: "hidden md:inline-flex"
) %>
<%= render DS::Link.new(
icon: "plus",
variant: "icon-inverse",
href: new_transaction_path,
frame: :modal,
class: "rounded-full md:hidden"
) %>