1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-14 12:59:59 +00:00
elk/components/account/AccountBotIndicator.vue

22 lines
477 B
Vue
Raw Normal View History

2023-01-07 13:53:09 +00:00
<script setup lang="ts">
defineProps<{
showLabel?: boolean
}>()
</script>
2022-12-11 15:43:23 +00:00
<template>
2023-01-07 13:53:09 +00:00
<div
flex="~ gap1" items-center
:class="{ 'border border-base rounded-md px-1': showLabel }"
text-secondary-light
2023-01-07 13:53:09 +00:00
>
<slot name="prepend" />
<CommonTooltip no-auto-focus :content="$t('account.bot')" :disabled="showLabel">
<div i-mdi:robot-outline />
2023-01-07 13:53:09 +00:00
</CommonTooltip>
<div v-if="showLabel">
{{ $t('account.bot') }}
</div>
2022-12-11 15:43:23 +00:00
</div>
</template>