<script setup lang="ts">
import type { NuxtError } from '#app'

const props = defineProps({
  error: Object as () => NuxtError
})
</script>

<template>
  <nuxt-layout name="main-header">
    <h1 class="text-center">{{ error.statusCode }}</h1>
    <nuxt-link to="/">Retourner à l'accueil</nuxt-link>
  </nuxt-layout>
</template>
