64 lines
1.9 KiB
TypeScript
64 lines
1.9 KiB
TypeScript
// Module ID: 16706
|
|
// Function ID: 16707
|
|
// Name: set
|
|
// Dependencies: [19, 1498, 2]
|
|
// Exports: useIsProfileModalTransitioning, useReportProfileModalTransition
|
|
|
|
// Module 16706 (set)
|
|
import closure_2 from "noop" /* 19 */;
|
|
import set from "set" /* 2 */;
|
|
|
|
const require = arg1;
|
|
let c3 = 0;
|
|
let set = new Set();
|
|
const result = set.fileFinishedImporting("modules/user_profile/native/profileModalTransition.tsx");
|
|
|
|
export const useReportProfileModalTransition = function useReportProfileModalTransition() {
|
|
navigation = navigation(1498).useNavigation();
|
|
let items = [navigation];
|
|
const effect = React.useEffect(() => {
|
|
function leave() {
|
|
if (c0) {
|
|
c0 = false;
|
|
const _Math = Math;
|
|
bound = Math.max(0, bound - 1);
|
|
if (bound !== bound) {
|
|
const item = closure_1_4.forEach((arg0) => arg0());
|
|
}
|
|
}
|
|
}
|
|
navigation = false;
|
|
const items = [
|
|
navigation.addListener("transitionStart", function enter() {
|
|
if (!c0) {
|
|
c0 = true;
|
|
const _Math = Math;
|
|
bound = Math.max(0, bound + 1);
|
|
if (bound !== bound) {
|
|
const item = closure_1_4.forEach((arg0) => arg0());
|
|
}
|
|
}
|
|
}),
|
|
navigation.addListener("transitionEnd", leave),
|
|
navigation.addListener("gestureCancel", leave)
|
|
];
|
|
return () => {
|
|
const item = items.forEach((arg0) => arg0());
|
|
if (c0) {
|
|
c0 = false;
|
|
const _Math = Math;
|
|
bound = Math.max(0, bound - 1);
|
|
if (bound !== bound) {
|
|
const item1 = closure_1_4.forEach((arg0) => arg0());
|
|
}
|
|
}
|
|
};
|
|
}, items);
|
|
};
|
|
export const useIsProfileModalTransitioning = function useIsProfileModalTransitioning() {
|
|
return React.useSyncExternalStore((arg0) => {
|
|
closure_0 = arg0;
|
|
set.add(arg0);
|
|
return () => closure_1_4.delete(closure_0);
|
|
}, () => closure_3 > 0);
|
|
};
|