<tr ...attributes>
  {{#let
    (hash
      shouldAddExtraColumn=this.shouldAddExtraColumn
      RowSortingCell=(component
        (ensure-safe-component @themeInstance.rowSortingCellComponent)
        themeInstance=@themeInstance
        selectedItems=@selectedItems
        expandedItems=@expandedItems
        sortProperties=@sortProperties
        sort=@sort
        data=@data
        expandAllRows=@expandAllRows
        collapseAllRows=@collapseAllRows
        toggleAllSelection=@toggleAllSelection
      )
    )
  as |RowSorting|
  }}
    {{#if (has-block)}}
      {{yield RowSorting}}
    {{else}}
      {{#if this.shouldAddExtraColumn}}
        <th>
          {{#if @groupHeaderCellComponent}}
            {{#let (component (ensure-safe-component @groupHeaderCellComponent)) as |GroupHeaderCellComponent|}}
              <GroupHeaderCellComponent
                @currentGroupingPropertyName={{@currentGroupingPropertyName}}
              />
            {{/let}}
          {{else}}
            {{this.currentGroupingPropertyNameTitlelized}}
          {{/if}}
        </th>
      {{/if}}
      {{#each this.shownColumns as |column|}}
        <RowSorting.RowSortingCell @column={{column}}/>
      {{/each}}
    {{/if}}
  {{/let}}
</tr>