mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
8 lines
249 B
JavaScript
8 lines
249 B
JavaScript
|
import mapContextToProps from './mapContextToProps';
|
||
|
export default (function (Context, prop, Component) {
|
||
|
return mapContextToProps(Context, function (context) {
|
||
|
var _ref;
|
||
|
|
||
|
return _ref = {}, _ref[prop] = context, _ref;
|
||
|
}, Component);
|
||
|
});
|