diff options
| author | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
|---|---|---|
| committer | rxliuli <rxliuli@gmail.com> | 2025-11-04 05:03:50 +0800 |
| commit | bce557cc2dc767628bed6aac87301a1be7c5431b (patch) | |
| tree | b51a051228d01fe3306cd7626d4a96768aadb944 /src/components/Error.svelte | |
init commit
Diffstat (limited to 'src/components/Error.svelte')
| -rw-r--r-- | src/components/Error.svelte | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/Error.svelte b/src/components/Error.svelte new file mode 100644 index 0000000..a0aeba1 --- /dev/null +++ b/src/components/Error.svelte @@ -0,0 +1,10 @@ +<script lang="ts"> + import ErrorPage from '@amp/web-app-components/src/components/Error/ErrorPage.svelte'; + import { getI18n } from '~/stores/i18n'; + + export let error: Error; + + const i18n = getI18n(); +</script> + +<ErrorPage translateFn={$i18n.t} {error} /> |
