{#if importing} { try { if (importText == '') { throw new Error('Import is empty') } themeData.current.colors = JSON.parse(importText) toast({ content: $t('message.success'), type: 'success' }) importing = false } catch (err) { toast({ content: err as string, type: 'error' }) } }} title={$t('routes.theme.import')} action={$t('routes.theme.import')} > {/if} {$t('routes.theme.title')}