<div class="{{@themeInstance.pageSizeWrapper}}" ...attributes>
  {{#let
    (hash
      Select=(
        component (ensure-safe-component @themeInstance.selectComponent)
        id=this.inputId
        options=@pageSizeOptions
        value=@pageSize
        type=@type
        themeInstance=@themeInstance
        cssPropertyName="changePageSize"
        changeValue=@changePageSize
      )
    )
  as |PageSizeSelect|
  }}
    {{#if (has-block)}}
      {{yield PageSizeSelect}}
    {{else}}
      <form class={{@themeInstance.form}}>
        <div class={{@themeInstance.formElementWrapper}}>
          <label for={{this.inputId}}>{{@themeInstance.rowsCountMsg}}</label>
          <PageSizeSelect.Select/>
        </div>
      </form>
    {{/if}}
  {{/let}}
</div>