<template>
    <v-sheet class="transparent">
        <v-chip 
            :color="usercurs.my_status.color" 
            small 
            outlined
            @click="OnClick"
        >
            {{ __(usercurs.my_status.status) }}
        </v-chip>
    </v-sheet>
</template>

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

        methods: {
            OnClick(e) {
                if(this.usercurs.status != 'sended')
                {
                    this.$emit('click-status', {
                        usercurs: this.usercurs, 
                        x: e.clientX, 
                        y: e.clientY
                    });
                }
            }
        },

        name: 'CursStatus',
    }
</script>