import Link from "next/link";
import React from "react";

interface CustomLinkProps {
  href?: string;
  className?: string;
  children: React.ReactNode;
  onClick?: () => void;
  target?: string;
  rel?: string;
}

export default function CustomLink({
  href,
  className,
  children,
  onClick,
  target,
  rel,
}: CustomLinkProps) {
  return (
    <Link
      href={href}
      prefetch={false}
      onClick={onClick}
      className={className}
      target={target}
      rel={rel}
    >
      {children}
    </Link>
  );
}
