import React, { Component, createContext } from 'react';
const I18nContext = createContext({});
const { Provider: SoftI18nProvider, Consumer: SoftI18nConsumer } = I18nContext;
class SoftContext extends Component {
    render() {
        let { i18n, children, } = this.props;
        return React.createElement(SoftI18nProvider, { value: i18n }, children);
    }
}
SoftContext.defaultProps = { i18n: {} };
export { SoftContext, SoftI18nConsumer };
//# sourceMappingURL=SoftContext.js.map