<template>
  <Block
    :pagination="false"
    :extra-filters="extraFilters"
    :block-options="blockOptions"
  />
</template>

<script>
import Block from '@inside-events/components/lib/EventsListingBlock'

export default {
  name: 'HomeEventsListing',
  $_i18nRootPath: 'customs.HOMEPAGE.events',
  components: { Block },
  computed: {
    extraFilters() {
      return {
        limit: 4
      }
    },
    blockOptions() {
      return {
        title: this.$t('customs.HOMEPAGE.events.title'),
        titleTag: 'h3',
        link: { name: 'EventsCalendarPage' },
        linkLabel: this.$t('customs.HOMEPAGE.events.link')
      }
    }
  }
}
</script>
