import { __assign } from '../../node_modules/tslib/tslib.es6.js';
import React from 'react';
import TranslationProvider from './index.js';

function withTranslationProvider(scopes) {
    return function (WrappedComponent) {
        return function (props) {
            var language = props.language;
            return (React.createElement(TranslationProvider, { language: language, scopes: scopes },
                React.createElement(WrappedComponent, __assign({}, props))));
        };
    };
}

export { withTranslationProvider };
//# sourceMappingURL=withTranslationProvider.js.map
