<% links ||= [] title ||= false track_as_sharing ||= false stacked ||= false columns ||= false brand ||= false brand_helper = GovukPublishingComponents::AppHelpers::BrandHelper.new(brand) classes = %w(gem-c-share-links) classes << "gem-c-share-links--stacked" if stacked classes << "gem-c-share-links--columns" if columns classes << brand_helper.brand_class data_attributes ||= {} data_attributes[:module] = 'gem-track-click' %> <% if links.any? %> <%= tag.div(class: classes, data: data_attributes) do %> <% if title %> <% end %> <% end %> <% end %>