<script setup>
import WorkerDescriptorProxy from 'src/pages/Worker/Card/WorkerDescriptorProxy.vue';

defineProps({
    name: { type: String, default: null },
    tag: { type: String, default: null },
    workerId: { type: Number, default: null },
    defaultName: { type: Boolean, default: false },
});
</script>
<template>
    <slot name="link">
        <span :class="{ link: workerId }">
            {{ defaultName ? name ?? $t('globals.system') : name }}
        </span>
    </slot>
    <WorkerDescriptorProxy v-if="workerId" :id="workerId" />
</template>
