2026-10-01 06:55:13 +00:00
|
|
|
// Module ID: 9053
|
|
|
|
|
// Function ID: 9054
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
2026-10-01 06:55:13 +00:00
|
|
|
// Dependencies: [2044, 563, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, isPrivateChannelWithEnabledActivities
|
|
|
|
|
|
2026-10-01 06:55:13 +00:00
|
|
|
// Module 9053 (useIsPrivateChannelWithEnabledActivities)
|
|
|
|
|
import ChannelStore from "ChannelStore" /* 2044 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +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) {
|
2026-09-10 05:38:07 +00:00
|
|
|
_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 {
|
2026-09-10 05:38:07 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
};
|