fumadocs-ui
Version:
The Radix UI version of Fumadocs UI
25 lines (23 loc) • 701 B
JavaScript
import { Header } from "./client.js";
import { cn } from "@fumadocs/ui/cn";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/layouts/home/index.tsx
function HomeLayout(props) {
const { nav = {}, links, githubUrl, i18n, themeSwitch = {}, searchToggle, ...rest } = props;
return /* @__PURE__ */ jsxs("main", {
id: "nd-home-layout",
...rest,
className: cn("flex flex-1 flex-col [--fd-layout-width:1400px]", rest.className),
children: [nav.enabled !== false && (nav.component ?? /* @__PURE__ */ jsx(Header, {
links,
nav,
themeSwitch,
searchToggle,
i18n,
githubUrl
})), props.children]
});
}
//#endregion
export { HomeLayout };
//# sourceMappingURL=index.js.map