--- import ProgressBar from "@components/media/ProgressBar.astro"; const { data, count } = Astro.props; ---
    { data.slice(0, count).map((item) => { const percentage = `${item.chart.percentage}%`; const playsLabel = item.chart.plays === 1 ? "play" : "plays"; return (
  1. {item.chart.title} {item.chart.artist} {item.chart.plays} {playsLabel}
  2. ); }) }