<template>
  <CapsuleNews
    v-bind="getAttrs($attrs)"
    :to="{
      name: 'NewsPage',
      params: { slug: slug[0] }
    }"
    :extra-categories-config="m_extraCategoriesConfig"
    :slug="slug"
  />
</template>

<script>
import { getAttrs } from '@inside-library/helpers/Attrs'

import CapsuleNews from '@inside-news/components/lib/Capsule'

import newsCategoriesMixin from '../../mixins/news-categories-mixin'

export default {
  name: 'Capsule',
  components: { CapsuleNews },
  mixins: [newsCategoriesMixin],
  props: {
    slug: {
      type: Array,
      required: true
    }
  },
  methods: {
    getAttrs
  }
}
</script>

<style></style>
