import { ZSpaceIsEnabledPM } from "../PM/ZSpaceIsEnabledPM";
export const zSpaceIsEnabledAdapter = {
    defaultVM: false,
    subscribe: (appObjects, setVM) => {
        const pm = ZSpaceIsEnabledPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("zSpaceIsEnabledAdapter", "Unable to find ZSpaceIsEnabledPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (appObjects, setVM) => {
        const pm = ZSpaceIsEnabledPM.get(appObjects);
        if (!pm) {
            appObjects.submitError("zSpaceIsEnabledAdapter", "Unable to find ZSpaceIsEnabledPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=zSpaceIsEnabledAdapter.js.map