import { Link as ChakraLink } from "@chakra-ui/react"; import { useMyTheme } from "lib/useMyTheme"; import NextLink from "next/link"; interface Props { children: React.ReactNode; href: string; isExternal?: boolean; prefetch?: boolean; isColored?: boolean; } const MyLink: React.FC = ({ children, href, isExternal, prefetch = false, isColored = true, }) => { const { themeColorShade } = useMyTheme(); if (isExternal) { return ( {children} ); } return ( {children} ); }; export default MyLink;