decord/source/modules/activities/native/useIsViewingActivity.tsx

28 lines
942 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 10535
2026-07-21 22:01:30 +00:00
// Function ID: 82324
2026-07-20 16:05:17 +00:00
// Name: useIsViewingActivity
// Dependencies: []
// Exports: useIsViewingActivity
2026-07-21 06:55:02 +00:00
// Module 10535 (useIsViewingActivity)
2026-07-20 16:05:17 +00:00
let closure_3 = importDefault(dependencyMap[0]);
const result = arg1(dependencyMap[5]).fileFinishedImporting("modules/activities/native/useIsViewingActivity.tsx");
export const useIsViewingActivity = function useIsViewingActivity(channelId) {
channelId = channelId.channelId;
const arg1 = channelId;
let tmp = importDefault(dependencyMap[1])(channelId);
const isModalOpen = arg1(dependencyMap[2]).useIsModalOpen(importDefault(dependencyMap[3]));
const obj = arg1(dependencyMap[2]);
const items = [closure_3];
const items1 = [channelId];
const stateFromStores = arg1(dependencyMap[4]).useStateFromStores(items, () => chatOpen.getChatOpen(channelId), items1);
if (tmp) {
tmp = isModalOpen;
}
if (tmp) {
tmp = !stateFromStores;
}
return tmp;
};