1 | var __assign = (this && this.__assign) || function () {
|
2 | __assign = Object.assign || function(t) {
|
3 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
4 | s = arguments[i];
|
5 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
6 | t[p] = s[p];
|
7 | }
|
8 | return t;
|
9 | };
|
10 | return __assign.apply(this, arguments);
|
11 | };
|
12 | import * as React from 'react';
|
13 | export var MapContext = React.createContext(undefined);
|
14 | export function withMap(Component) {
|
15 | return function MappedComponent(props) {
|
16 | return (React.createElement(MapContext.Consumer, null, function (map) { return React.createElement(Component, __assign({ map: map }, props)); }));
|
17 | };
|
18 | }
|
19 |
|
\ | No newline at end of file |