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