<template>
    <simple-item v-if="item.optionsCount == 0"
        :item="item"
    >
    </simple-item>

    <activator-item v-else
        :item=item
    >
    </activator-item>
</template>

<script>
    export default {
        
        props: {
            item: {required: true},
        },

        components: {
            SimpleItem: require('./SimpleItem/SimpleItem').default,
            ActivatorItem: require('./Activator/ActivatorItem').default,
        },

        name: 'TreeListItem',
    }
</script>