UNPKG

pope-test-callkit2

Version:

An Open-source Voice & Video Calling UI Component Based on Tencent Cloud Service.

14 lines (11 loc) 466 B
import { reactive, ref } from '../../adapter-vue'; import { TUIStore, StoreName, NAME } from '../../TUICallService'; export type TCallerUserInfoValue = { callerUserInfo: { avatar?: string; userId?: string; }, }; const callerUserInfo = ref(TUIStore.getData(StoreName.CALL, NAME.CALLER_USER_INFO)); export const callerUserInfoValue: TCallerUserInfoValue = reactive({ callerUserInfo }); export const CallerUserInfoContextKey = 'CallerUserInfoContextKey';