1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-24 23:26:09 +09:00
elk/components/account/AccountHoverWrapper.vue
2022-11-29 01:24:42 +08:00

19 lines
369 B
Vue

<script setup lang="ts">
import type { Account } from 'masto'
defineProps<{
account: Account
disabled?: boolean
}>()
</script>
<template>
<VMenu v-if="!disabled" placement="bottom-start" :delay="{ show: 500, hide: 100 }">
<slot />
<template #popper>
<AccountHoverCard :account="account" />
</template>
</VMenu>
<slot v-else />
</template>