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