10 lines
274 B
TypeScript
10 lines
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
|