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