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