import { __assign } from "tslib";
import React, { useContext } from 'react';
import IntlContext from './intl-context';
export function withLocale(WrappedComponent) {
    return function (props) {
        var locale = useContext(IntlContext);
        return React.createElement(WrappedComponent, __assign({}, props, { locale: locale }));
    };
}
//# sourceMappingURL=with-locale.js.map