mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 01:22:49 +00:00
12 lines
393 B
JavaScript
12 lines
393 B
JavaScript
import * as React from 'react';
|
|
import { createContext, useContext } from 'react';
|
|
var PanoramaContext = /*#__PURE__*/createContext(null);
|
|
export var useIsPanorama = () => useContext(PanoramaContext) != null;
|
|
export var PanoramaContextProvider = _ref => {
|
|
var {
|
|
children
|
|
} = _ref;
|
|
return /*#__PURE__*/React.createElement(PanoramaContext.Provider, {
|
|
value: true
|
|
}, children);
|
|
}; |