UNPKG

@shopgate/engage

Version:
5 lines 789 B
function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}import React from'react';import PropTypes from'prop-types';import classNames from'classnames';import{Link}from'@shopgate/engage/components';import{link}from"./TextLink.style";/** * The TextLink component * @param {Object} props The component props * @returns {JSX.Element} */var TextLink=function TextLink(props){return React.createElement(Link,_extends({},props,{className:classNames(props.className,link),tag:"a",role:"link",tabIndex:0}));};TextLink.defaultProps={className:null};export default TextLink;