'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var translationsContext = require('./translationsContext-78113889.js');
var React = require('react');

function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefault(React);

const TranslationsProvider = ({ locale = 'en-PH', values, children, }) => {
    const contextValue = React.useMemo(() => {
        if (!values) {
            return null;
        }
        return {
            locale,
            values,
        };
    }, [locale, values]);
    return (React__default["default"].createElement(translationsContext.TranslationsContext.Provider, { value: contextValue }, children));
};

exports.TranslationsContext = translationsContext.TranslationsContext;
exports.TranslationsProvider = TranslationsProvider;
