<template>
  <Page
    :printable="false"
    :extraFields="extraFields"
    :relatedOptions="{
      extraFields,
      componentAttributes: () => ({
        extraCategoriesConfig: m_extraCategoriesConfig
      })
    }"
  />
</template>

<script>
import Back from '@inside-commons/components/lib/Back'

import Page from '@inside-news/components/pages/NewsPage'
import newsCategoriesMixin from '../mixins/news-categories-mixin'

export default {
  name: 'NewsPage',
  components: { Back, Page },
  mixins: [newsCategoriesMixin],
  data() {
    return {
      extraFields: [
        {
          domains: {
            fields: ['uuid', 'title'],
            filters: { 'status:eq': 1 }
          }
        }
      ]
    }
  }
}
</script>
