@atlaskit/progress-tracker
Version:
A progress tracker displays the steps and progress through a journey.
27 lines (26 loc) • 863 B
JavaScript
/* link.tsx generated by @compiled/babel-plugin v3.0.2 */
import "./link.compiled.css";
import { ax, ix } from "@compiled/react/runtime";
import React from 'react';
import { Anchor } from '@atlaskit/primitives/compiled';
var styles = {
anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _2rko12b0 _syazi7uo _1e0c1ule _9oik1r31 _1bnx8stv _jf4cnqa1 _30l313af _9h8h12zz"
};
/**
* __Progress tracker link__
*/
var Link = function Link(_ref) {
var href = _ref.href,
onClick = _ref.onClick,
label = _ref.label,
testId = _ref.testId;
return /*#__PURE__*/React.createElement(Anchor, {
xcss: styles.anchor
// TODO: We should not be rendering empty hrefs on anchors. This should be plain text or a button/pressable if `onClick` is provided.
,
href: href || '',
onClick: onClick,
testId: testId
}, label);
};
export default Link;