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