<template>
  <Error
    title="404"
    :message="t(`error.NOT_FOUND.${target}`)"
    :button-text="t('common.HOME')"
  />
</template>

<script lang="ts">
  import { defineComponent } from 'vue'
  import { useI18n } from 'vue-i18n'

  import Error from '@/components/Common/Error.vue'

  export default defineComponent({
    name: 'NotFoundView',
    components: {
      Error,
    },
    props: {
      target: {
        type: String,
        default: 'PAGE',
      },
    },
    setup() {
      const { t } = useI18n()
      return { t }
    },
  })
</script>
