mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-29 05:48:49 +03:00
18 lines
369 B
Vue
18 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>
|