<template>
    <div :class="_classid"></div>
</template>

<script lang="ts">
import Vue from 'vue';

export default Vue.extend({
  name: 'Instagram',
  props: {
    classid: {
      type: String,
      required: true
    },
  },
  computed: {
    _classid (): string {
      return this.classid
    },
  },
  mounted() {
      let script = document.createElement('script')
      script.setAttribute('src', 'https://apps.elfsight.com/p/platform.js')
      document.head.appendChild(script)
    }
})
</script>