UNPKG

@atlaskit/spotlight

Version:

A spotlight introduces users to points of interest, from focused messages to multi-step tours.

16 lines (15 loc) 682 B
/* 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 { PopoverTarget as Legacy } from './legacy'; import { PopoverTarget as TopLayer } from './top-layer'; /** * __Target__ * * A target is the element that the popover content will be positioned in relation to. */ export var PopoverTarget = function PopoverTarget(_ref) { var children = _ref.children; return fg('platform-dst-top-layer-spotlight') ? /*#__PURE__*/React.createElement(TopLayer, null, children) : /*#__PURE__*/React.createElement(Legacy, null, children); };