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