26 lines
958 B
TypeScript
26 lines
958 B
TypeScript
// Module ID: 8582
|
|
// Function ID: 8583
|
|
// Name: MediaChannelExperimentUtils
|
|
// Dependencies: [1085, 2]
|
|
// Exports: useGuildEligibleForMediaChannels
|
|
|
|
// Module 8582 (MediaChannelExperimentUtils)
|
|
import Constants from "Constants" /* 1085 */;
|
|
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;
|
|
const tmp3 = (features.has(GuildFeatures.CREATOR_MONETIZABLE) || features.has(GuildFeatures.CREATOR_MONETIZABLE_PROVISIONAL)) && features.has(GuildFeatures.COMMUNITY) || features.has(GuildFeatures.INTERNAL_EMPLOYEE_ONLY);
|
|
return tmp3;
|
|
}
|
|
};
|