27 lines
1 KiB
TypeScript
27 lines
1 KiB
TypeScript
// Module ID: 8522
|
|
// Function ID: 8523
|
|
// Name: useIsSocialLayerParentApplication
|
|
// Dependencies: [19, 1074, 8321, 2]
|
|
// Exports: default, getIsSocialLayerParentApplication
|
|
|
|
// Module 8522 (useIsSocialLayerParentApplication)
|
|
import Constants from "Constants" /* 1074 */;
|
|
import ApplicationFlagUtils from "ApplicationFlagUtils" /* 8321 */;
|
|
import react from "react" /* 19 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
const ApplicationFlags = Constants.ApplicationFlags;
|
|
const result = size.fileFinishedImporting("modules/applications/useIsSocialLayerParentApplication.tsx");
|
|
|
|
export default function useIsSocialLayerParentApplication(arg0) {
|
|
let closure_0 = arg0;
|
|
const items = [arg0];
|
|
return react.useMemo(() => {
|
|
const obj = ApplicationFlagUtils;
|
|
return obj.hasApplicationFlag(closure_0, ApplicationFlags.PARENT);
|
|
}, items);
|
|
};
|
|
export const getIsSocialLayerParentApplication = function getIsSocialLayerParentApplication(application) {
|
|
const obj = ApplicationFlagUtils;
|
|
return obj.hasApplicationFlag(application, ApplicationFlags.PARENT);
|
|
};
|