decord/alpha/source/modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx

44 lines
1.2 KiB
TypeScript
Raw Normal View History

// Module ID: 9053
// Function ID: 9054
2026-07-20 16:05:17 +00:00
// Name: useIsPrivateChannelWithEnabledActivities
// Dependencies: [2044, 563, 2]
2026-07-20 16:05:17 +00:00
// Exports: default, isPrivateChannelWithEnabledActivities
// Module 9053 (useIsPrivateChannelWithEnabledActivities)
import ChannelStore from "ChannelStore" /* 2044 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const size = fn(2);
const result = size.fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
2026-07-20 16:05:17 +00:00
export default function useIsPrivateChannelWithEnabledActivities(arg0) {
_require = arg0;
const items = [ChannelStore];
const stateFromStores = require("useStateFromStores").useStateFromStores(items, () => ChannelStore.getChannel(closure_0));
2026-07-29 08:29:29 +00:00
let flag;
if (stateFromStores != null) {
flag = stateFromStores.isPrivate();
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (flag == null) {
flag = false;
}
return flag;
2026-07-20 16:05:17 +00:00
};
2026-07-29 08:29:29 +00:00
export const isPrivateChannelWithEnabledActivities = function isPrivateChannelWithEnabledActivities(arg0) {
if (null == arg0) {
2026-07-20 16:05:17 +00:00
return false;
} else {
const channel = ChannelStore.getChannel(arg0);
2026-07-29 08:29:29 +00:00
let flag;
if (channel != null) {
flag = channel.isPrivate();
}
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return flag;
2026-07-20 16:05:17 +00:00
}
};