{pollEvent.content}
{#if isExpired}
Poll ended
{:else if submittingVote}
Submitting vote...
{:else if hasVoted}
You have already voted
{/if}
{#each options as option (option.id)} {@const percentage = getPercentage(option.id)} {@const count = voteCounts.get(option.id) || 0} {@const isSelected = userVote.includes(option.id)} {/each}