CoastalCommitsPastes/client/components/Link.tsx
2022-03-06 17:20:43 -08:00

10 lines
No EOL
274 B
TypeScript

import { Link as GeistLink, LinkProps } from "@geist-ui/core"
import { useRouter } from "next/router";
const Link = (props: LinkProps) => {
const { basePath } = useRouter();
return <GeistLink {...props} href={`/${basePath}/${props.href}`} />
}
export default Link