({ref, ...props}: RACLinkProps & {ref?: Ref<HTMLAnchorElement>})
| 22 | import {registerLink, registerSpectrumLink} from './prefetch'; |
| 23 | |
| 24 | export function BaseLink({ref, ...props}: RACLinkProps & {ref?: Ref<HTMLAnchorElement>}) { |
| 25 | return <RACLink {...props} ref={useMemo(() => mergeRefs(ref, registerLink), [ref])} />; |
| 26 | } |
| 27 | |
| 28 | export function Link({href, ...props}: LinkProps) { |
| 29 | if (href?.startsWith('s2:') || href?.startsWith('react-aria:')) { |
nothing calls this directly
no test coverage detected