@atlaskit/spotlight
Version:
A spotlight introduces users to points of interest, from focused messages to multi-step tours.
15 lines (14 loc) • 629 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 { 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 const PopoverTarget = ({
children
}) => fg('platform-dst-top-layer-spotlight') ? /*#__PURE__*/React.createElement(TopLayer, null, children) : /*#__PURE__*/React.createElement(Legacy, null, children);