2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 10472
|
|
|
|
|
// Function ID: 81246
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [1348, 624, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, isPrivateChannelWithEnabledActivities
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 10472 (useIsPrivateChannelWithEnabledActivities)
|
2026-07-23 10:11:24 +00:00
|
|
|
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useIsPrivateChannelWithEnabledActivities(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = arg0;
|
2026-07-20 16:05:17 +00:00
|
|
|
let isPrivateResult;
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [_isNativeReflectConstruct];
|
|
|
|
|
const stateFromStores = _require(624).useStateFromStores(items, () => outer1_2.getChannel(closure_0));
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != stateFromStores) {
|
|
|
|
|
isPrivateResult = stateFromStores.isPrivate();
|
|
|
|
|
}
|
|
|
|
|
return null != isPrivateResult && isPrivateResult;
|
|
|
|
|
};
|
|
|
|
|
export const isPrivateChannelWithEnabledActivities = function isPrivateChannelWithEnabledActivities(channelId) {
|
|
|
|
|
if (null == channelId) {
|
|
|
|
|
return false;
|
|
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
channel = channel.getChannel(channelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
let isPrivateResult;
|
|
|
|
|
if (null != channel) {
|
|
|
|
|
isPrivateResult = channel.isPrivate();
|
|
|
|
|
}
|
|
|
|
|
return null != isPrivateResult && isPrivateResult;
|
|
|
|
|
}
|
|
|
|
|
};
|