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