<template>

<component v-if="currentComponent != null" :is="currentComponent" />


</template>

<script>

import ManagerSalesConsultat from "./VerticalMenuByRole/ManagerSalesConsultant"
import Adm from "./VerticalMenuByRole/Adm"

export default {
  components:{
    ManagerSalesConsultat,
    Adm
  },

  computed:{
    currentComponent(){

      if(this.$store.getters.isAdm){
          return "Adm";
        }
        else if(this.$store.getters.isManagerSalesConsultant){
          return "ManagerSalesConsultat";
        }

        return null;
        }
  }
}
</script>