<template>
  <Block
    v-if="getStore('getInsideSettings', 'homepage.video_homepage_url')"
    :title="$_tr('title')"
    title-tag="h3"
    :link="getStore('getInsideSettings', 'homepage.video_youtube_link')"
    :link-label="$_tr('link')"
  >
    <div class="video-homepage-container">
      <iframe
        width="560"
        height="315"
        :src="getStore('getInsideSettings', 'homepage.video_homepage_url')"
        frameborder="0"
        allowfullscreen
      />
    </div>
  </Block>
</template>

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

export default {
  name: 'VideoHomepage',
  $_i18nRootPath: 'customs.HOME_PAGE.video',
  components: { Block }
}
</script>
