This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Zack Sheppard (@zackdotcomputer) on 1/19/2021 | |
// Freely available under MIT License | |
// Workaround for https://github.com/vercel/next.js/issues/5533 | |
import Link, { LinkProps } from "next/link"; | |
import { AnchorHTMLAttributes, PropsWithChildren } from "react"; | |
type PropTypes = LinkProps & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href">; | |
/// A unified component for the next/link <Link> and a standard <a> anchor. |