import React, {forwardRef} from "react"; import {LinkIcon} from "@heroui/shared-icons"; import {linkAnchorClasses} from "@heroui/theme"; import {LinkProps, useLink} from "@heroui/react"; export interface MyLinkProps extends LinkProps {} const MyLink = forwardRef((props, ref) => { const { Component, children, showAnchorIcon, anchorIcon = , getLinkProps, } = useLink({ ...props, ref, }); return ( <> {children} {showAnchorIcon && anchorIcon} ); }); MyLink.displayName = "MyLink"; export default MyLink;