1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-28 14:58:10 +09:00
elk/components/account/AccountHoverWrapper.vue

19 lines
369 B
Vue
Raw Normal View History

2022-11-27 11:13:18 +09:00
<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
2022-11-29 02:24:39 +09:00
disabled?: boolean
2022-11-27 11:13:18 +09:00
}>()
</script>
<template>
2022-11-29 02:24:39 +09:00
<VMenu v-if="!disabled" placement="bottom-start" :delay="{ show: 500, hide: 100 }">
2022-11-27 11:13:18 +09:00
<slot />
<template #popper>
<AccountHoverCard :account="account" />
</template>
</VMenu>
2022-11-29 02:24:39 +09:00
<slot v-else />
2022-11-27 11:13:18 +09:00
</template>