import { getInitializedFeatureDefinitions } from './definitions.mjs';
import { setFeatureDefinitions } from '../../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs';

function loadFeatures(features) {
    const featureDefinitions = getInitializedFeatureDefinitions();
    for (const key in features) {
        featureDefinitions[key] = {
            ...featureDefinitions[key],
            ...features[key],
        };
    }
    setFeatureDefinitions(featureDefinitions);
}

export { loadFeatures };
