<template>
  <div class="container">
    <h1 v-if="error.statusCode === 404">{{$t('error_404')}}</h1>
    <h1 v-else-if="error.statusCode === 500">{{$t('error_500')}}</h1>
    <nuxt-link :to="localePath('/')">{{$t('unknown_error')}}</nuxt-link>
  </div>
</template>

<script lang="ts">
export default {
  props: ['error']
}
</script>
