import type RatingIndicator from "./RatingIndicator.js"; import type { Star } from "./RatingIndicator.js"; import Icon from "./Icon.js"; export default function RatingIndicatorTemplate(this: RatingIndicator) { return (
); } function starLi(this: RatingIndicator, star: Star) { if (star.selected) { return (
  • ); } if (star.halfStar) { return (
  • ); } if (this.readonly) { return (
  • ); } if (this.disabled) { return (
  • ); } return (
  • ); } function halfStarIconName(this: RatingIndicator) { return this.disabled || this.readonly ? this.ratedIcon : this.unratedIcon; }