({ href, ...props })
| 7 | | ComponentProps<typeof LocalizedLink>; |
| 8 | |
| 9 | const Link: FC<LinkProps> = ({ href, ...props }) => { |
| 10 | if (!href || /^https?:/.test(href as string)) { |
| 11 | return <a href={href as string} {...props} />; |
| 12 | } |
| 13 | |
| 14 | return ( |
| 15 | <LocalizedLink |
| 16 | href={href} |
| 17 | {...(props as Omit<ComponentProps<typeof LocalizedLink>, 'href'>)} |
| 18 | /> |
| 19 | ); |
| 20 | }; |
| 21 | |
| 22 | export default Link; |
nothing calls this directly
no outgoing calls
no test coverage detected