Files
Speedtest-Tracker/conf/site/node_modules/@restart/context/es/injectContextAsProp.js
Henry Whitaker ea5808047f Tweaked gitignore
gitignore removed all composer and npm files, so automated builds would fail
2020-04-12 21:24:03 +01:00

8 lines
249 B
JavaScript
Vendored

import mapContextToProps from './mapContextToProps';
export default (function (Context, prop, Component) {
return mapContextToProps(Context, function (context) {
var _ref;
return _ref = {}, _ref[prop] = context, _ref;
}, Component);
});