<template>
  <NewcomersListingBlock
    :fractions="2"
    :items-per-page="2"
    :block-options="blockOptions"
    :pagination="false"
  />
</template>

<script>
import NewcomersListingBlock from '@inside-newcomers/components/lib/NewcomersListingBlock'

export default {
  name: 'SpaceNewsComers',
  $_i18nRootPath: 'customs.SPACES.newComers',
  components: { NewcomersListingBlock },
  computed: {
    blockOptions() {
      return {
        title: this.$t(
          'customs.SPACES.newComers.title',
          this.$store.getters.getCurrentLang
        ),
        titleTag: 'h3',
        link: { name: 'NewcomersListingPage' },
        linkLabel: this.$t(
          'customs.SPACES.newComers.link',
          this.$store.getters.getCurrentLang
        )
      }
    }
  }
}
</script>
