<%= component_wrapper(style: "position: relative") do render(Primer::Alpha::ActionMenu.new(classes: "hide-when-print")) do |component| component.with_show_button(scheme: button_scheme, disabled: @disabled) do |button| button.with_leading_visual_icon(icon: :plus) button.with_trailing_visual_icon(icon: "triangle-down") t("button_add") end component.with_item( label: t("activerecord.models.meeting_agenda_item"), tag: :a, content_arguments: { href: new_meeting_agenda_item_path(@meeting, type: "simple", meeting_section_id: @meeting_section&.id), data: { "turbo-stream": true } } ) component.with_item( label: t("activerecord.models.work_package"), tag: :a, content_arguments: { href: new_meeting_agenda_item_path(@meeting, type: "work_package", meeting_section_id: @meeting_section&.id), data: { "turbo-stream": true } } ) unless @meeting_section component.with_item( label: t("activerecord.models.meeting_section"), tag: :a, content_arguments: { href: meeting_sections_path(@meeting), data: { "turbo-stream": true, "turbo-method": :post } } ) end end end %>