@xo-union/tk-component-header-nav
Version:
19 lines • 480 B
JavaScript
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
import React from "react";
import PropTypes from "prop-types";
const Link = _ref => {
let {
href,
children,
...props
} = _ref;
return /*#__PURE__*/React.createElement("a", _extends({
href: href,
"data-trackable": ""
}, props), children);
};
process.env.NODE_ENV !== "production" ? Link.propTypes = {
href: PropTypes.string,
children: PropTypes.node
} : void 0;
export default Link;