chore: heygermany customer project
Some checks failed
Main / Setup and Test (push) Has been cancelled
Main / Build Website (push) Has been cancelled

This commit is contained in:
e2e
2026-07-11 09:36:03 +02:00
commit 1e78e21c36
398 changed files with 38345 additions and 0 deletions

View File

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