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