import type TimeSelectionInputs from "./TimeSelectionInputs.js"; import Input from "./Input.js"; import Label from "./Label.js"; import SegmentedButton from "./SegmentedButton.js"; import SegmentedButtonItem from "./SegmentedButtonItem.js"; export default function TimeSelectionInputsTemplate(this: TimeSelectionInputs) { const shortLabels: Record = { hours: this.hoursShortLabel, minutes: this.minutesShortLabel, seconds: this.secondsShortLabel, }; return (
{this._entities.map((entity, index) => ( <> { !this._showLabels && entity.hasSeparator && : } { this._showLabels && index > 0 && : }
{ this._showLabels && }
))} {this._periods.length > 0 && <> { !this._showLabels && }
{ this._showLabels && } {this._periods.map(period => {period.label} )}
}
); }