1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 08:29:57 +00:00
elk/components/account/AccountHoverWrapper.vue

19 lines
369 B
Vue
Raw Normal View History

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