import CText from './CText.vue'
import CMarquee from './CMarquee.vue'
import CMedia from './CMedia.vue'
import CImage from './CImage.vue'
import CVideo from './CVideo.vue'
import CTime from './CTime.vue'
import CWeather from './CWeather.vue'
import CWeb from './CWeb.vue'
import CLive from './CLive.vue'

export default {
  components: {
    [CText.name]: CText,
    [CMarquee.name]: CMarquee,
    [CMedia.name]: CMedia,
    [CImage.name]: CImage,
    [CVideo.name]: CVideo,
    [CTime.name]: CTime,
    [CWeather.name]: CWeather,
    [CWeb.name]: CWeb,
    [CLive.name]: CLive
  },
  props: {
    node: {
      type: Object,
      required: true
    }
  },
  computed: {
    widgetType () {
      return this.node.type
    }
  }
}
