21 lines
908 B
TypeScript
21 lines
908 B
TypeScript
// Metro module 8760 (f8761).
|
|
import { useCallback } from "react";
|
|
import { AnalyticsPages, AnalyticsSections } from "../../../Constants";
|
|
import { PremiumTypes } from "../../premium/PremiumConstants";
|
|
import useAnalyticsLocations from "../../app_analytics/useAnalyticsLocations";
|
|
import openPremiumPlanSelectionActionSheet from "../../premium/native/openPremiumPlanSelectionActionSheet";
|
|
export default function useOpenNitroSubscribeActionSheet(r5 = AnalyticsSections.COLLECTIBLES_SHOP) {
|
|
const COLLECTIBLES_SHOP = r5;
|
|
const analyticsLocations = useAnalyticsLocations().analyticsLocations;
|
|
return useCallback(() => {
|
|
openPremiumPlanSelectionActionSheet({
|
|
analyticsLocation: {
|
|
page: AnalyticsPages.COLLECTIBLES_SHOP,
|
|
section: COLLECTIBLES_SHOP
|
|
},
|
|
analyticsLocations,
|
|
premiumType: PremiumTypes.TIER_2
|
|
});
|
|
}, [analyticsLocations, COLLECTIBLES_SHOP]);
|
|
};
|