import { forwardRef, type AnchorHTMLAttributes } from 'react' import { Link as RouterLink } from '@tanstack/react-router' export type LinkProps = AnchorHTMLAttributes & { href: string } const Link = forwardRef(function Link(props, ref) { const { href, ...rest } = props if (/^(https?:|mailto:|tel:)/.test(href)) { return } return )} /> }) export default Link