<script lang="ts">

    import FullPageError from "../components/FullPageError.svelte";
    import {t} from "$lib/i18n";
    import {page} from "$app/stores";
    import {onMount} from "svelte";
    import {enforce_auth} from "$lib/auth";

    onMount(async () => {
        await enforce_auth(); // This is purely just to trigger loggedin for the navbar. We don't actually do anything with this.
    })
</script>

<FullPageError title="{t('error.code.' + $page.status)}" subtitle="{t('error.message.' + $page.error.message)}"/>