import BusyIndicator from "./BusyIndicator.js"; import DropIndicator from "./DropIndicator.js"; import type List from "./List.js"; export default function ListTemplate(this: List) { return (
{this.header.length > 0 && } {this.shouldRenderH1 &&
{this.headerText}
}
{this.hasData &&
} {this.ariaLabelModeText}
    {this.showNoDataText &&
  • {this.noDataText}
  • }
{ this.growsWithButton && moreRow.call(this) } {this.footerText &&
{this.footerText}
} {this.hasData &&
}
); } function moreRow(this: List) { return (
{this.loading && } {this._growingButtonText}
{this.accessibilityAttributes.growingButton?.description && {this.accessibilityAttributes.growingButton.description} }
); }