GoScrobble/web/node_modules/@restart/context/es/injectContextAsProp.js

8 lines
249 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import mapContextToProps from './mapContextToProps';
export default (function (Context, prop, Component) {
return mapContextToProps(Context, function (context) {
var _ref;
return _ref = {}, _ref[prop] = context, _ref;
}, Component);
});