import NextLink, { LinkProps as NextLinkProps } from "next/link"; import React from "react"; import styles from "./Link.module.css"; type Props = Omit & { href: string }; export const Link: React.FC = (props) => { const { children, ...otherProps } = props; const { href } = otherProps; const isExternal = href.includes("http://") || href.includes("https://"); return isExternal ? ( {children} ) : ( {children} ); };