<template>
  <Block
    :filters="filters"
    :pagination="false"
    :block-options="blockOptions"
    endpoint="content/clubs_documents"
  />
</template>

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

export default {
  name: 'ClubsDocuments',
  $_i18nRootPath: 'customs.CLUBS_PAGE.DOCUMENTS',
  components: { Block },
  data() {
    return {
      filters: {
        'status:eq': 1,
        sort: 'updated_at:desc',
        clubs: { 'slug:eq': this.$route.params.slug },
        limit: 4
      },
      blockOptions: {
        title: this.$t('customs.CLUBS_PAGE.DOCUMENTS.title'),
        titleTag: 'h3',
        link: { name: 'ClubsGedPage' },
        linkLabel: this.$t('customs.CLUBS_PAGE.DOCUMENTS.more')
      }
    }
  }
}
</script>
