'use strict';

var React = require('react');
var message = require('./message.js');

const MessageContext = React.createContext(message.default);
const useMessage = () => {
  return React.useContext(MessageContext);
};

exports.MessageContext = MessageContext;
exports.useMessage = useMessage;
