1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-04-17 09:28:43 -04:00

passing a custom link component to mdx was unnecessary

This commit is contained in:
2022-01-12 14:20:45 -05:00
parent e6ead77f5f
commit b51e8a38ce
31 changed files with 34 additions and 92 deletions

View File

@@ -1,20 +0,0 @@
import Link from "next/link";
import type { LinkProps } from "next/link";
type CustomLinkProps = LinkProps & {
target?: string;
rel?: string;
className?: string;
children?: unknown;
rest?: unknown;
};
const CustomLink = ({ href, target, rel, className, children, ...rest }: CustomLinkProps) => (
<Link href={href} passHref={true}>
<a className={className} target={target} rel={rel} {...rest}>
{children}
</a>
</Link>
);
export default CustomLink;