decord/source/modules/media_channel/MediaChannelExperimentUtils.tsx

26 lines
935 B
TypeScript
Raw Normal View History

// Module ID: 9803
// Function ID: 9804
// Name: MediaChannelExperimentUtils
// Dependencies: [1074, 2]
2026-07-20 16:05:17 +00:00
// Exports: useGuildEligibleForMediaChannels
// Module 9803 (MediaChannelExperimentUtils)
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const GuildFeatures = Constants.GuildFeatures;
const result = size.fileFinishedImporting("modules/media_channel/MediaChannelExperimentUtils.tsx");
2026-07-20 16:05:17 +00:00
export const useGuildEligibleForMediaChannels = function useGuildEligibleForMediaChannels(stateFromStores) {
let id;
2026-07-29 08:29:29 +00:00
if (stateFromStores != null) {
2026-07-20 16:05:17 +00:00
id = stateFromStores.id;
}
if (null == id) {
return false;
} else {
const features = stateFromStores.features;
2026-07-29 08:29:29 +00:00
return (features.has(GuildFeatures.CREATOR_MONETIZABLE) || features.has(GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL)) && features.has(GuildFeatures.COMMUNITY) || features.has(GuildFeatures.INTERNAL_EMPLOYEE_ONLY);
2026-07-20 16:05:17 +00:00
}
};