UNPKG

@zohodesk/dot

Version:

In this Library, we Provide Some Basic Components to Build Your Application

29 lines (28 loc) 753 B
import React from 'react'; import { defaultProps } from "./props/defaultProps"; import { propTypes } from "./props/propTypes"; import Link from "../../Link/Link"; import style from "./LinkText.module.css"; export default class LinkText extends React.Component { render() { let { text, href, onClick, dataId, customClass } = this.props; return /*#__PURE__*/React.createElement(Link, { href: href ? href : 'javascript:void(0)', className: `${style.text} ${customClass} `, onClick: onClick, dataId: dataId }, text); } } LinkText.propTypes = propTypes; LinkText.defaultProps = defaultProps; // if (__DOCS__) { // LinkText.docs = { // componentGroup: 'errorStates' // }; // }