@atlaskit/spotlight
Version:
A spotlight introduces users to points of interest, from focused messages to multi-step tours.
27 lines • 895 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 { forwardRef } from 'react';
import { fg } from '@atlaskit/platform-feature-flags/fg';
import { SpotlightCard as Legacy } from './legacy';
import { SpotlightCard as TopLayer } from './top-layer';
/**
* __Spotlight__
*
* The base UI card that wraps composable spotlight components.
*
*/
export var SpotlightCard = /*#__PURE__*/forwardRef(function (_ref, ref) {
var children = _ref.children,
placement = _ref.placement,
testId = _ref.testId;
return fg('platform-dst-top-layer-spotlight') ? /*#__PURE__*/React.createElement(TopLayer, {
ref: ref,
placement: placement,
testId: testId
}, children) : /*#__PURE__*/React.createElement(Legacy, {
ref: ref,
placement: placement,
testId: testId
}, children);
});