decord/source/modules/applications/useIsSocialLayerParentApplication.tsx

23 lines
938 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10589
// Function ID: 10590
2026-07-29 08:29:29 +00:00
// Name: useIsSocialLayerParentApplication
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 676, 7733, 2]
2026-07-29 08:29:29 +00:00
// Exports: default, getIsSocialLayerParentApplication
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 10589 (useIsSocialLayerParentApplication)
import getApplicationFlags from "getApplicationFlags" /* 7733 */;
2026-08-24 06:08:38 +00:00
import closure_2 from "noop" /* 19 */;
import { ApplicationFlags } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/applications/useIsSocialLayerParentApplication.tsx");
2026-07-20 16:05:17 +00:00
export default function useIsSocialLayerParentApplication(arg0) {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
2026-07-20 16:05:17 +00:00
const items = [arg0];
2026-08-24 06:08:38 +00:00
return React.useMemo(() => callback(closure_1_1[2]).hasApplicationFlag(callback, closure_1_3.PARENT), items);
2026-07-29 08:29:29 +00:00
};
export const getIsSocialLayerParentApplication = function getIsSocialLayerParentApplication(application) {
2026-08-24 06:08:38 +00:00
return getApplicationFlags.hasApplicationFlag(application, ApplicationFlags.PARENT);
2026-07-20 16:05:17 +00:00
};