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