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

    <activator-item v-else
        :item=item
        :closeOnContent="closeOnContent"
        :onClickActivator="onClickActivator"
        :smallActivator="smallActivator"
    >
    </activator-item>
</template>

<script>
    export default {
        props: {
            item: {required: true},
            closeOnContent: {default: false},
            onClickActivator: {default: null},
            smallActivator: {default: false},
        },
        
        components: {
            SimpleItem: require('./SimpleItem/SimpleItem').default,
            ActivatorItem: require('./Activator/ActivatorItem').default,
        },
    }
</script>