<template>
  <Page :fetched-data="fetchedData">
    <template #extra-fields>
      <section class="main-section">
        <Title tag="h4">
          {{ $_tr('news.title') }}
        </Title>

        <InputSelectbox
          :default-value="fetchedData.general.corporate_news_category"
          :async="{
            contentType: 'news_categories',
            fields: ['uuid', 'title']
          }"
          :label="$_tr('news.corporateNewsCategory.label')"
          object-label-key="title"
          object-value-key="uuid"
          model-name="corporate_news_category"
          form-id="advanced-settings-identity"
        />
      </section>
    </template>
  </Page>
</template>

<script>
import { Title } from 'inside-collection/atoms'

import Page from '@inside-administration/components/pages/advanced-settings/AdminAdvancedSettingsIdentityPage'

import InputSelectbox from '@inside-forms/displays/sub-components/fields/InputSelectbox'

export default {
  name: 'AdminAdvancedSettingsIdentityPage',
  $_i18nRootPath:
    'administration.PAGES.ADVANCED_SETTINGS.adminAdvancedSettingsIdentityPage',
  components: {
    Title,
    Page,
    InputSelectbox
  },
  props: {
    fetchedData: {
      type: Object
    }
  }
}
</script>
