pleroma-fe/src/components/user_popover/user_popover.js

22 lines
667 B
JavaScript
Raw Normal View History

2026-02-13 14:26:39 +02:00
import { mapState } from 'pinia'
import { defineAsyncComponent } from 'vue'
2026-01-08 17:26:52 +02:00
2026-01-06 16:23:17 +02:00
import UserCard from '../user_card/user_card.vue'
2026-02-13 14:26:39 +02:00
import { useSyncConfigStore } from 'src/stores/sync_config.js'
const UserPopover = {
name: 'UserPopover',
2026-01-06 16:22:52 +02:00
props: ['userId', 'overlayCenters', 'disabled', 'overlayCentersSelector'],
components: {
UserCard,
2026-01-06 16:22:52 +02:00
Popover: defineAsyncComponent(() => import('../popover/popover.vue')),
},
2026-02-13 14:26:39 +02:00
computed: mapState(useSyncConfigStore, {
userPopoverAvatarAction: (state) =>
state.mergedConfig.userPopoverAvatarAction,
userPopoverOverlay: (state) => state.mergedConfig.userPopoverOverlay,
}),
}
export default UserPopover