<%= component_wrapper(data: { test_selector: 'op-share-wp-active-count'}) do render(Primer::Box.new(display: :flex, aligns_items: :center)) do # There's no point in rendering the BulkSelectionCounterComponent even if # I'm able to manage shares if the only user that the work package is # currently shared is myself, since I'm not able to manage my own share. if sharing_manageable? && shared_with_anyone_else_other_than_myself? render(WorkPackages::Share::BulkSelectionCounterComponent.new(count:)) else render(WorkPackages::Share::ShareCounterComponent.new(count:)) end end end %>