<template>
  <Page :fetched-data="fetchedData">
    <template #extra-fields>
      <section class="main-section">
        <InputText
          :label="$_tr('videoHomepageUrl.label')"
          :default-value="fetchedData.homepage.video_homepage_url"
          :form-id="formId"
          model-name="video_homepage_url"
          class="input-advanced-settings"
        />

        <InputText
          :label="$_tr('videoYoutubeLink.label')"
          :default-value="fetchedData.homepage.video_youtube_link"
          :form-id="formId"
          model-name="video_youtube_link"
          class="input-advanced-settings"
        />
      </section>
    </template>
  </Page>
</template>

<script>
import Page from '@inside-administration/components/pages/advanced-settings/AdminAdvancedSettingsHomePage'

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

export default {
  name: 'AdminAdvancedSettingsHomePage',
  $_i18nRootPath:
    'administration.PAGES.ADVANCED_SETTINGS.adminAdvancedSettingsHomePage',
  components: {
    Page,
    InputText
  },
  props: {
    fetchedData: {
      type: Object
    }
  },
  data() {
    return {
      formId: 'advanced-settings-homepage'
    }
  }
}
</script>
