decord/stable/source/modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx
github-actions 528a3dd5ba chore: update source for stable 345.9
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4745.js (118.4 MB)
2026-09-18 20:18:48 +00:00

43 lines
1.2 KiB
TypeScript

// Module ID: 9509
// Function ID: 9510
// Name: useIsPrivateChannelWithEnabledActivities
// Dependencies: [1957, 563, 2]
// Exports: default, isPrivateChannelWithEnabledActivities
// Module 9509 (useIsPrivateChannelWithEnabledActivities)
import ChannelStore from "ChannelStore" /* 1957 */;
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
export default function useIsPrivateChannelWithEnabledActivities(arg0) {
_require = arg0;
const items = [ChannelStore];
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => ChannelStore.getChannel(closure_0));
let flag;
if (stateFromStores != null) {
flag = stateFromStores.isPrivate();
}
if (flag == null) {
flag = false;
}
return flag;
};
export const isPrivateChannelWithEnabledActivities = function isPrivateChannelWithEnabledActivities(arg0) {
if (null == arg0) {
return false;
} else {
const channel = ChannelStore.getChannel(arg0);
let flag;
if (channel != null) {
flag = channel.isPrivate();
}
if (flag == null) {
flag = false;
}
return flag;
}
};