@atlaskit/spotlight
Version:
A spotlight introduces users to points of interest, from focused messages to multi-step tours.
17 lines • 707 B
JavaScript
/* index.tsx generated by @compiled/babel-plugin v3.0.2 */
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { fg } from '@atlaskit/platform-feature-flags/fg';
import { UNSAFE_UpdateOnChange as Legacy } from './legacy';
import { UNSAFE_UpdateOnChange as TopLayer } from './top-layer';
export var UNSAFE_UpdateOnChange = function UNSAFE_UpdateOnChange(_ref) {
var selectors = _ref.selectors,
options = _ref.options;
return fg('platform-dst-top-layer-spotlight') ? /*#__PURE__*/React.createElement(TopLayer, {
selectors: selectors,
options: options
}) : /*#__PURE__*/React.createElement(Legacy, {
selectors: selectors,
options: options
});
};