{ if (e.detail === false) { onClose(); } }} >
{#if $mobile} { await showControls.set(true); }} >
{$i18n.t('Controls')}
{/if} { await showControls.set(true); await showOverview.set(true); }} >
{$i18n.t('Overview')}
{ const res = await copyToClipboard(await getChatAsText()).catch((e) => { console.error(e); }); if (res) { toast.success($i18n.t('Copied to clipboard')); } }} >
{$i18n.t('Copy')}
{ shareHandler(); }} >
{$i18n.t('Share')}
{$i18n.t('Download')}
{ downloadJSONExport(); }} >
{$i18n.t('Export chat (.json)')}
{ downloadTxt(); }} >
{$i18n.t('Plain text (.txt)')}
{ downloadPdf(); }} >
{$i18n.t('PDF document (.pdf)')}