<template>
  <DocumentsListingBlock
    :static-data="documents"
    :pagination="false"
    :block-options="blockOptions"
    class="mb-xl"
  />
</template>

<script>
import DocumentsListingBlock from '@inside-ged/components/lib/DocumentsListingBlock'

export default {
  name: 'SpaceDocumentsListing',
  $_i18nRootPath: 'customs.SPACES.documents',
  components: { DocumentsListingBlock },
  props: {
    documents: {
      type: Array,
      required: true
    }
  },
  computed: {
    blockOptions() {
      return {
        title: this.$_tr('title'),
        titleTag: 'h4',
        link: { name: 'GedPage' },
        linkLabel: this.$_tr('link')
      }
    }
  }
}
</script>
