1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 13:56:22 -04:00

21 lines
478 B
TypeScript

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;