16 lines
317 B
TypeScript
16 lines
317 B
TypeScript
import Link from "next/link";
|
|
import { forwardRef } from "react";
|
|
|
|
const BaseLink = forwardRef((props: any, ref) => {
|
|
const { href, children, ...rest } = props;
|
|
return (
|
|
<Link href={href} ref={ref} {...rest}>
|
|
{children}
|
|
</Link>
|
|
);
|
|
});
|
|
|
|
BaseLink.displayName = "BaseLink";
|
|
|
|
export default BaseLink;
|