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