{ add_shares_open = !add_shares_open; }}>{$t('quiztivity.editor.shares.add_new_share')} {#if add_shares_open}
{$t('words.submit')}
{/if}
{#await loaded_shares} {:then shares} {#each shares as share}
{ navigator.share({ title: 'Quiztivity on ClassQuiz', text: 'Play this Quiztivity now on ClassQuiz!', url: `${window.location.origin}/quiztivity/share/${share.id}?ref=share` }); }} >
{ copyToClipboard( `${window.location.origin}/quiztivity/share/${share.id}?ref=copy` ); }} >

{#if share.expire_in} {$t('quiztivity.editor.shares.expires_on', { date: DateTime.now() .plus({ minutes: share.expire_in }) .toJSDate() .toLocaleString() })} {:else} {$t('quiztivity.editor.shares.never_expires')} {/if}

{ delete_share(share.id); }}>{$t('words.delete')}
{/each} {/await}