2023-01-18 15:07:07 +09:00
|
|
|
<script setup lang="ts">
|
|
|
|
const mask = useMask()
|
|
|
|
</script>
|
|
|
|
|
2022-12-28 05:07:19 +09:00
|
|
|
<template>
|
2023-01-18 15:07:07 +09:00
|
|
|
<VDropdown :distance="0" placement="top-start" strategy="fixed" @apply-show="mask.show()" @apply-hide="mask.hide()">
|
2022-12-28 05:07:19 +09:00
|
|
|
<button btn-action-icon :aria-label="$t('action.switch_account')">
|
2023-01-03 22:48:13 +09:00
|
|
|
<div :class="{ 'hidden xl:block': currentUser }" i-ri:more-2-line />
|
2023-01-05 21:10:22 +09:00
|
|
|
<AccountAvatar v-if="currentUser" xl:hidden :account="currentUser.account" w-9 h-9 square />
|
2022-12-28 05:07:19 +09:00
|
|
|
</button>
|
|
|
|
<template #popper="{ hide }">
|
|
|
|
<UserSwitcher @click="hide" />
|
|
|
|
</template>
|
|
|
|
</VDropdown>
|
|
|
|
</template>
|