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:
@@ -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;
|
||||
Reference in New Issue
Block a user