aboutsummaryrefslogblamecommitdiffhomepage
path: root/src/components/Service.vue
blob: 25b86d5f9e685924b2dcf2bdd7b251547ed045fd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
          
                                                                           


           

                                             



                  
                  
    


                                               
                               




                                                    

         
<template>
  <component v-bind:is="component" :item="item" :proxy="proxy"></component>
</template>

<script>
import Generic from "./services/Generic.vue";

export default {
  name: "Service",
  props: {
    item: Object,
    proxy: Object,
  },
  computed: {
    component() {
      const type = this.item.type || "Generic";
      if (type === "Generic") {
        return Generic;
      }
      return () => import(`./services/${type}.vue`);
    },
  },
};
</script>