mirror of
https://github.com/elk-zone/elk
synced 2024-11-27 22:38:11 +09:00
22 lines
459 B
Vue
22 lines
459 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
showLabel?: boolean
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
flex="~ gap1" items-center
|
|
:class="{ 'border border-base rounded-md px-1': showLabel }"
|
|
text-secondary-light
|
|
>
|
|
<slot name="prepend" />
|
|
<CommonTooltip :content="$t('account.bot')" :disabled="showLabel">
|
|
<div i-ri:robot-line />
|
|
</CommonTooltip>
|
|
<div v-if="showLabel">
|
|
{{ $t('account.bot') }}
|
|
</div>
|
|
</div>
|
|
</template>
|