@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
15 lines (14 loc) • 654 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OnDoubleClickContext = void 0;
var _react = require("react");
/**
* Context for the panel splitter's double click handler. Only internally exported.
*
* NOTE: This context is a temporary workaround to enable the `SideNavPanelSplitter` component
* to collapse the side nav on double click, without exposing the `onDoubleClick` prop on `PanelSplitter`.
* Once `PanelSplitter` supports an `onDoubleClick` prop directly, this context should be removed.
*/
var OnDoubleClickContext = exports.OnDoubleClickContext = /*#__PURE__*/(0, _react.createContext)(undefined);