|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
393 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | import * as React from 'react';
|
|---|
| 2 | import { createContext, useContext } from 'react';
|
|---|
| 3 | var PanoramaContext = /*#__PURE__*/createContext(null);
|
|---|
| 4 | export var useIsPanorama = () => useContext(PanoramaContext) != null;
|
|---|
| 5 | export var PanoramaContextProvider = _ref => {
|
|---|
| 6 | var {
|
|---|
| 7 | children
|
|---|
| 8 | } = _ref;
|
|---|
| 9 | return /*#__PURE__*/React.createElement(PanoramaContext.Provider, {
|
|---|
| 10 | value: true
|
|---|
| 11 | }, children);
|
|---|
| 12 | }; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.