2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 8737
|
|
|
|
|
// Function ID: 8738
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
2026-08-11 06:20:06 +00:00
|
|
|
// Dependencies: [1391, 647, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default, isPrivateChannelWithEnabledActivities
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 8737 (useIsPrivateChannelWithEnabledActivities)
|
|
|
|
|
import closure_2 from "ensureGuildLoaded" /* 1391 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
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-08-24 06:08:38 +00:00
|
|
|
const items = [closure_2];
|
|
|
|
|
const stateFromStores = _require(647).useStateFromStores(items, () => closure_1_2.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-07-29 08:29:29 +00:00
|
|
|
channel = channel.getChannel(arg0);
|
|
|
|
|
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
|
|
|
}
|
|
|
|
|
};
|