<template>
  <Slider :news="news" :use-fetch="false" :slider-options="sliderOptions" />
</template>

<script>
import Slider from '@inside-news/components/lib/Slider'

export default {
  name: 'SpaceSliderNews',
  $_i18nRootPath: 'customs.SPACES.newsSlider',
  components: {
    Slider
  },
  props: {
    news: {
      type: Array,
      required: true
    }
  },
  computed: {
    sliderOptions() {
      return {
        title: this.$_tr('title'),
        titleTag: 'h4',
        border: true
      }
    }
  }
}
</script>
