UNPKG

@atlaskit/progress-tracker

Version:

A progress tracker displays the steps and progress through a journey.

28 lines (27 loc) 791 B
/* 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'; const styles = { anchor: "_4bfu1r31 _1hmsglyw _ajmmnqa1 _11c81kw7 _2rko12b0 _syazi7uo _1e0c1ule _9oik1r31 _1bnx8stv _jf4cnqa1 _30l313af _9h8h12zz" }; /** * __Progress tracker link__ */ const Link = ({ href, onClick, label, 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;