<template>
    <v-tooltip v-if="control.isRequired" top>
        <template 
            v-slot:activator="{ on, attrs }"
        >
            <div
                v-bind="attrs"
                v-on="on"
            >
                <span v-html="__(control.label)">
                </span>

                <v-icon
                    small
                    color="warning"
                >
                    mdi-asterisk
                </v-icon>
            </div>
        </template>
        <span>
            {{__('Obligatoriu')}}
        </span>
    </v-tooltip>
    

    <span v-else v-html="__(control.label)">
    </span>
</template>

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