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