<template>
  <Block class="mb-xl">
    <component-listing
      id="project-news-subsidiaries-listing"
      :static-data="newsSubsidiaries"
      direction="vertical"
    >
      <template #default="{ item }">
        <Resume
          v-bind="item"
          :key="item.uuid"
          :to="item.uri"
          :image="item.image_link"
        />
      </template>
    </component-listing>
  </Block>
</template>

<script>
import Block from '@inside-commons/components/lib/Block'
import Resume from '@inside-news/components/lib/Resume'

export default {
  name: 'ProjectNewsSubsidiaries',
  $_i18nRootPath: 'customs.PROJECTS.newsSubsidiaries',
  components: {
    Block,
    Resume
  },
  props: {
    newsSubsidiaries: {
      type: Array,
      required: true
    }
  }
}
</script>
