<template>
  <div class="w-full h-full flex flex-center">
    <Error :code="code || route.name" class="-translate-y-[60px]" />
  </div>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router';
import Error from '@/components/Error/index.vue';

withDefaults(defineProps<{
  code?: number | string
}>(), {
  code: ''
});

const route = useRoute();
</script>
