elk/components/account/AccountLockIndicator.vue

24 lines
469 B
Vue
Raw Permalink Normal View History

2023-07-02 20:55:18 +03:00
<script setup lang="ts">
defineProps<{
showLabel?: boolean
}>()
const { t } = useI18n()
2023-07-02 20:55:18 +03:00
</script>
<template>
<div
flex="~ gap1" items-center
:class="{ 'border border-base rounded-md px-1': showLabel }"
text-secondary-light
>
<slot name="prepend" />
<CommonTooltip content="Lock" :disabled="showLabel">
2023-07-02 20:55:18 +03:00
<div i-ri:lock-line />
</CommonTooltip>
<div v-if="showLabel">
{{ t('account.lock') }}
2023-07-02 20:55:18 +03:00
</div>
</div>
</template>