"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = exports.SkipNav = void 0;
var _react = _interopRequireDefault(require("react"));
var _i18n = require("../i18n");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
 * For information about how and when to use this component,
 * [refer to its full documentation page](https://design.cms.gov/components/skip-nav/).
 */
var SkipNav = function SkipNav(_ref) {
  var children = _ref.children,
    href = _ref.href,
    onClick = _ref.onClick;
  return /*#__PURE__*/_react.default.createElement("a", {
    className: "ds-c-skip-nav",
    href: href,
    onClick: onClick
  }, children !== null && children !== void 0 ? children : (0, _i18n.t)('skipNav.default'));
};
exports.SkipNav = SkipNav;
var _default = SkipNav;
exports.default = _default;