fumadocs-core
Version:
The React.js library for building a documentation website
19 lines (18 loc) • 528 B
JavaScript
"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";
// 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
});
}
export { NextProvider };