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