decord/beta/source/modules/media_channel/MediaChannelExperimentUtils.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

25 lines
935 B
TypeScript

// Module ID: 9796
// Function ID: 9797
// Name: MediaChannelExperimentUtils
// Dependencies: [1078, 2]
// Exports: useGuildEligibleForMediaChannels
// Module 9796 (MediaChannelExperimentUtils)
import Constants from "Constants" /* 1078 */;
import size from "module_2" /* 2 */;
const GuildFeatures = Constants.GuildFeatures;
const result = size.fileFinishedImporting("modules/media_channel/MediaChannelExperimentUtils.tsx");
export const useGuildEligibleForMediaChannels = function useGuildEligibleForMediaChannels(stateFromStores) {
let id;
if (stateFromStores != null) {
id = stateFromStores.id;
}
if (null == id) {
return false;
} else {
const features = stateFromStores.features;
return (features.has(GuildFeatures.CREATOR_MONETIZABLE) || features.has(GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL)) && features.has(GuildFeatures.COMMUNITY) || features.has(GuildFeatures.INTERNAL_EMPLOYEE_ONLY);
}
};