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