2026-02-13 14:26:39 +02:00
|
|
|
import { mapState } from 'pinia'
|
2026-01-08 17:26:52 +02:00
|
|
|
|
2026-06-02 18:09:12 +03:00
|
|
|
import Popover from 'src/components/popover/popover.vue'
|
2026-06-04 20:49:43 +03:00
|
|
|
import UserCard from 'src/components/user_card/user_card.vue'
|
2022-06-16 16:30:05 +03:00
|
|
|
|
2026-03-24 21:42:22 +02:00
|
|
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
2026-02-13 14:26:39 +02:00
|
|
|
|
2022-06-16 16:30:05 +03:00
|
|
|
const UserPopover = {
|
|
|
|
|
name: 'UserPopover',
|
2026-01-06 16:22:52 +02:00
|
|
|
props: ['userId', 'overlayCenters', 'disabled', 'overlayCentersSelector'],
|
2022-06-16 16:30:05 +03:00
|
|
|
components: {
|
2026-06-04 20:49:43 +03:00
|
|
|
UserCard,
|
2026-06-02 18:09:12 +03:00
|
|
|
Popover,
|
2022-06-27 19:52:40 +03:00
|
|
|
},
|
2026-03-24 21:42:22 +02:00
|
|
|
computed: mapState(useMergedConfigStore, {
|
2026-02-13 14:26:39 +02:00
|
|
|
userPopoverAvatarAction: (state) =>
|
|
|
|
|
state.mergedConfig.userPopoverAvatarAction,
|
|
|
|
|
userPopoverOverlay: (state) => state.mergedConfig.userPopoverOverlay,
|
|
|
|
|
}),
|
2022-06-16 16:30:05 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default UserPopover
|