Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
// Module ID: 8860
|
|
// Function ID: 8861
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
|
// Dependencies: [2045, 563, 2]
|
|
// Exports: default, isPrivateChannelWithEnabledActivities
|
|
|
|
// Module 8860 (useIsPrivateChannelWithEnabledActivities)
|
|
import ChannelStore from "ChannelStore" /* 2045 */;
|
|
|
|
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;
|
|
}
|
|
};
|