{#if poll && results} {@const endsAt = poll.endsAt()}
{#each poll.options() as option (option.id)}
{/each}
{pollType === "multiplechoice" ? "Multiple choice" : "Single choice"} {#if endsAt} {#if poll.isClosed()} • Ended {formatTimestampRelative(endsAt)} {:else} • Ends {formatTimestampRelative(endsAt)} {/if} {/if}
{results.voters} vote{results.voters === 1 ? "" : "s"}
{/if}