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