<template>
  <component :is="item.type" :conditions="item.conditions"></component>
</template>

<script lang="ts">
import Vue from "vue";
import If from "./expr-if.vue";
import Else from "./expr-else.vue";

export default Vue.extend({
  name: "expr",
  props: {
    item: {
      type: Object,
      required: true,
    },
  },
  components: {
    IF: If,
    ELSE: Else,
  },
});
</script>
