import _extends from "@babel/runtime/helpers/extends";

/**
 * HTML Element
 *
 */
import React from 'react';
import PropTypes from 'prop-types';
import E from './Element';

const Anchor = p => React.createElement(E, _extends({
  is: "a",
  useClass: "dnb-anchor"
}, p));

Anchor.propTypes = process.env.NODE_ENV !== "production" ? {
  href: PropTypes.string.isRequired,
  children: PropTypes.node
} : {};
Anchor.defaultProps = {
  children: null
};
Anchor.tagName = 'dnb-anchor';
export default Anchor;