<%= component_wrapper do render(Primer::OpenProject::SidePanel::Section.new) do |section| section.with_title { t(:label_attachment_plural) } section.with_description { I18n.t('meeting.attachments.text') } section.with_counter(count: @meeting.attachments.count) section.with_footer_button( id: "meetings-add-attachments", classes: "hide-when-print" ) do |button| button.with_leading_visual_icon(icon: "op-attachmentadd") t("js.label_add_attachments") end resource = ::API::V3::Meetings::MeetingRepresenter.new(@meeting, current_user: User.current, embed_links: false) helpers.list_attachments(resource, inputs: { allowUploading: true, showTimestamp: false, externalUploadButton: "#meetings-add-attachments" }) end end %>