datahub/site/components/BaseLink.tsx

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;