{#if version && compareVersion(version.latest, version.current) && ($settings?.showUpdateToast ?? true)}
{ localStorage.setItem('dismissedUpdateToast', Date.now().toString()); version = null; }} />
{/if} {#if $user}
{#if !['user', 'admin'].includes($user?.role)} {:else} {#if localDBChats.length > 0}
{$i18n.t('Important Update')}
{$i18n.t('Action Required for Chat Log Storage')}
{$i18n.t( "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through" )} {$i18n.t('Settings')} > {$i18n.t('Chats')} > {$i18n.t('Import Chats')}. {$i18n.t( 'This ensures that your valuable conversations are securely saved to your backend database. Thank you!' )}
{/if} {#if loaded} {:else}
{/if} {/if}
{/if}