decord/alpha/source/modules/applications/useIsSocialLayerParentApplication.tsx

46 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 9204
// Function ID: 9205
2026-07-29 08:29:29 +00:00
// Name: useIsSocialLayerParentApplication
2026-10-09 10:00:15 +00:00
// Dependencies: [19, 1085, 9205, 558, 576, 2]
2026-10-03 08:58:59 +00:00
// Exports: getIsSocialLayerParentApplication
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 9204 (useIsSocialLayerParentApplication)
2026-10-03 08:58:59 +00:00
import react2 from "react" /* 576 */;
import Constants from "Constants" /* 1085 */;
2026-10-09 10:00:15 +00:00
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 9205 */;
2026-10-03 08:58:59 +00:00
import react from "react" /* 19 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const ApplicationFlags = Constants.ApplicationFlags;
function getIsSocialLayerParentApplication(application) {
const obj = ApplicationFlagUtils;
return obj.hasApplicationFlag(application, ApplicationFlags.PARENT);
}
2026-10-08 09:57:35 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsSocialLayerParentApplication(application) {
2026-10-03 08:58:59 +00:00
let tmp4;
const obj = react2;
const cResult = obj.c(2);
if (cResult[0] !== application) {
const tmpResult = ApplicationFlagUtils;
const hasApplicationFlagResult = tmpResult.hasApplicationFlag(application, ApplicationFlags.PARENT);
cResult[0] = application;
cResult[1] = hasApplicationFlagResult;
tmp4 = hasApplicationFlagResult;
} else {
tmp4 = cResult[1];
}
return tmp4;
2026-10-08 09:57:35 +00:00
}) : (function useIsSocialLayerParentApplication(arg0) {
2026-10-03 08:58:59 +00:00
let closure_0 = arg0;
const items = [arg0];
return react.useMemo(() => {
const obj = ApplicationFlagUtils;
return obj.hasApplicationFlag(closure_0, ApplicationFlags.PARENT);
}, items);
});
const result = size.fileFinishedImporting("modules/applications/useIsSocialLayerParentApplication.tsx");
2026-07-20 16:05:17 +00:00
2026-10-03 08:58:59 +00:00
export default tmp2;
export { getIsSocialLayerParentApplication };