// react
import React, { ReactNode } from 'react';
// third-party
import Link from 'next/link';
import classNames from 'classnames';

interface Props {
  href: string;
  children: ReactNode;
  className?: string;
}

function AppLink({ href, children, className }: Props) {
  return (
    <Link href={href}>
      <a className={classNames(className)}>
        {children}
      </a>
    </Link>
  );
}

export default AppLink;

