<template>
  <client-only>
    <div v-if="status">
      <div style="heght: 400px" :id="ads.ad_click_url"></div>

      <script>
        {{ads ? ads.script : ""}}
      </script>
    </div>
  </client-only>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  computed: {
    ...mapGetters({
      ads: "modules/ads/mainAds",
    }),
    status() {
      if (!this.ads) {
        return false;
      } else {
        return true;
      }
    },
  },
};
</script>

<style>
</style>