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