28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
// Metro module 6198 (f6199).
|
|
import openPremiumUpsellActionSheet from "./openPremiumUpsellActionSheet";
|
|
import { UpsellTypes } from "../../../../../ConstantsIOS";
|
|
import { EntitlementFeatureNames } from "../../../../../_bundle/Module6201";
|
|
export default function maybeOpenPremiumUpsellActionSheet({ initialUpsellKey }) {
|
|
if (UpsellTypes.UPLOAD === initialUpsellKey) {
|
|
openPremiumUpsellActionSheet(EntitlementFeatureNames.INCREASED_FILE_UPLOAD_SIZE);
|
|
return true;
|
|
}
|
|
if (UpsellTypes.GLOBAL_EMOJI === initialUpsellKey) {
|
|
openPremiumUpsellActionSheet(EntitlementFeatureNames.EMOJIS_EVERYWHERE);
|
|
return true;
|
|
}
|
|
if (UpsellTypes.ANIMATED_EMOJI === initialUpsellKey) {
|
|
openPremiumUpsellActionSheet(EntitlementFeatureNames.ANIMATED_EMOJIS);
|
|
return true;
|
|
}
|
|
if (UpsellTypes.SOUNDBOARD === initialUpsellKey) {
|
|
openPremiumUpsellActionSheet(EntitlementFeatureNames.SOUNDBOARD_EVERYWHERE);
|
|
return true;
|
|
}
|
|
if (UpsellTypes.STREAM_HIGH_QUALITY === initialUpsellKey) {
|
|
openPremiumUpsellActionSheet(EntitlementFeatureNames.STREAM_HIGH_QUALITY);
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|