/**
 * Copyright IBM Corp. 2020, 2026
 *
 * This source code is licensed under the Apache-2.0 license found in the
 * LICENSE file in the root directory of this source tree.
 */

import React from "react";
import PropTypes from "prop-types";

//#region src/components/Nav/NavItemLink.jsx
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
const NavItemLink = React.forwardRef(function NavItemLink(props, ref) {
	const { element = "a", ...rest } = props;
	return React.createElement(element, {
		...rest,
		ref
	});
});
NavItemLink.displayName = "NavItemLink";
NavItemLink.propTypes = { element: PropTypes.elementType };

//#endregion
export { NavItemLink as default };