40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
// Module ID: 10672
|
|
// Function ID: 10673
|
|
// Name: useIsPrivateChannelWithEnabledActivities
|
|
// Dependencies: [1372, 647, 2]
|
|
// Exports: default, isPrivateChannelWithEnabledActivities
|
|
|
|
// Module 10672 (useIsPrivateChannelWithEnabledActivities)
|
|
import ensureGuildLoaded from "ensureGuildLoaded";
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/activities/utils/useIsPrivateChannelWithEnabledActivities.tsx");
|
|
|
|
export default function useIsPrivateChannelWithEnabledActivities(arg0) {
|
|
const _require = arg0;
|
|
const items = [ensureGuildLoaded];
|
|
const stateFromStores = _require(647).useStateFromStores(items, () => outer1_2.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 {
|
|
channel = channel.getChannel(arg0);
|
|
let flag;
|
|
if (channel != null) {
|
|
flag = channel.isPrivate();
|
|
}
|
|
if (flag == null) {
|
|
flag = false;
|
|
}
|
|
return flag;
|
|
}
|
|
};
|