decord/alpha/source/modules/activities/native/useIsViewingActivity.tsx
github-actions 52331fb8ae chore: update source for alpha 349.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5051.js (118.4 MB)
2026-09-30 07:29:52 +00:00

31 lines
1.1 KiB
TypeScript

// Module ID: 9050
// Function ID: 9051
// Name: useIsViewingActivity
// Dependencies: [4882, 9037, 4722, 9034, 504, 2]
// Exports: useIsViewingActivity
// Module 9050 (useIsViewingActivity)
import ChannelCallModalDefault from "ChannelCallModal" /* 9034 */;
import useIsActivityFocusedDefault from "useIsActivityFocused" /* 9037 */;
import ChannelRTCStore from "ChannelRTCStore" /* 4882 */;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/native/useIsViewingActivity.tsx");
export const useIsViewingActivity = function useIsViewingActivity(channelId) {
channelId = channelId.channelId;
let tmp = useIsActivityFocusedDefault(channelId);
const isModalOpen = channelId(4722).useIsModalOpen(ChannelCallModalDefault);
const obj = channelId(4722);
const items = [ChannelRTCStore];
const items1 = [channelId];
const stateFromStores = channelId(504).useStateFromStores(items, () => ChannelRTCStore.getChatOpen(channelId), items1);
if (tmp) {
tmp = isModalOpen;
}
if (tmp) {
tmp = !stateFromStores;
}
return tmp;
};