<template>
	<div v-if="error.statusCode === 404" class="error--page">
		<h1>{{error.statusCode}}</h1>
		<p>{{error.message}}</p>
		<nuxt-link :to="{name: 'lang',params: {lang: 'fa'}}">Home</nuxt-link>
	</div>
	<div v-else class="error--page">
		<h1>{{error.statusCode}}</h1>
		<p>{{error.message}}</p>
		<nuxt-link :to="{name: 'lang',params: {lang: 'fa'}}">Home</nuxt-link>
	</div>
</template>

<script>
   export default {
      props: ['error'],
      layout: 'blank'
   }
</script>
