(props: LinkDOMProps)
| 176 | |
| 177 | /** @deprecated - For backward compatibility. */ |
| 178 | export function getSyntheticLinkProps(props: LinkDOMProps): DOMAttributes<HTMLElement> { |
| 179 | return { |
| 180 | 'data-href': props.href, |
| 181 | 'data-target': props.target, |
| 182 | 'data-rel': props.rel, |
| 183 | 'data-download': props.download, |
| 184 | 'data-ping': props.ping, |
| 185 | 'data-referrer-policy': props.referrerPolicy |
| 186 | } as DOMAttributes<HTMLElement>; |
| 187 | } |
| 188 | |
| 189 | export function useLinkProps(props?: LinkDOMProps): LinkDOMProps { |
| 190 | let router = useRouter(); |
nothing calls this directly
no outgoing calls
no test coverage detected