@atlaskit/editor-plugin-extension
Version:
editor-plugin-extension plugin for @atlaskit/editor-core
21 lines • 773 B
JavaScript
import React from 'react';
import Link from '@atlaskit/link';
import { fg } from '@atlaskit/platform-feature-flags';
export var HelpLink = function HelpLink(_ref) {
var documentationUrl = _ref.documentationUrl,
label = _ref.label;
return fg('dst-a11y__replace-anchor-with-link__editor-core-ex') ? /*#__PURE__*/React.createElement(Link, {
target: "_blank",
rel: "noopener noreferrer",
href: documentationUrl,
"data-testid": "config-panel-header-documentation-link"
}, label) :
/*#__PURE__*/
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor
React.createElement("a", {
target: "_blank",
rel: "noopener noreferrer",
href: documentationUrl,
"data-testid": "config-panel-header-documentation-link"
}, label);
};