{$t('settings.title')} {#if importing} { try { if (importText == '') { throw new Error('Import is empty') } const parsed = JSON.parse(importText) const merged = { ...defaultSettings, ...parsed } Object.assign(settings, merged) toast({ content: $t('toast.settingsImport'), type: 'success' }) importing = false } catch (err) { toast({ content: err as string, type: 'error' }) } }} title={$t('routes.theme.import')} action={$t('routes.theme.import')} >