UNPKG

fumadocs-core

Version:

The React.js library for building a documentation website

23 lines (20 loc) 583 B
'use client'; import { FrameworkProvider } from "./index.js"; import { jsx } from "react/jsx-runtime"; import { useParams, usePathname, useRouter } from "next/navigation"; import Link from "next/link"; import Image from "next/image"; //#region src/framework/next.tsx function NextProvider({ children, Link: CustomLink, Image: CustomImage }) { return /* @__PURE__ */ jsx(FrameworkProvider, { usePathname, useRouter, useParams, Link: CustomLink ?? Link, Image: CustomImage ?? Image, children }); } //#endregion export { NextProvider }; //# sourceMappingURL=next.js.map