import Link from 'next/link';
import { FC, ReactElement } from 'react';

// ==============================================================
type NextLinkProps = {
  href: string;
  className?: string;
  title: string | ReactElement;
  target?: string;
};
// ==============================================================

const NextLink: FC<NextLinkProps> = (props) => {
  const { href, className, title, target = '_self' } = props;

  return (
    <Link href={href} className={className} target={target}>
      {title}
    </Link>
  );
};

export default NextLink;
