|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 | exports.useIsPanorama = exports.PanoramaContextProvider = void 0;
|
|---|
| 7 | var _react = _interopRequireWildcard(require("react"));
|
|---|
| 8 | var React = _react;
|
|---|
| 9 | function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|---|
| 10 | var PanoramaContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|---|
| 11 | var useIsPanorama = () => (0, _react.useContext)(PanoramaContext) != null;
|
|---|
| 12 | exports.useIsPanorama = useIsPanorama;
|
|---|
| 13 | var PanoramaContextProvider = _ref => {
|
|---|
| 14 | var {
|
|---|
| 15 | children
|
|---|
| 16 | } = _ref;
|
|---|
| 17 | return /*#__PURE__*/React.createElement(PanoramaContext.Provider, {
|
|---|
| 18 | value: true
|
|---|
| 19 | }, children);
|
|---|
| 20 | };
|
|---|
| 21 | exports.PanoramaContextProvider = PanoramaContextProvider; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.