-
-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathlayout.tsx
More file actions
49 lines (46 loc) · 966 Bytes
/
Copy pathlayout.tsx
File metadata and controls
49 lines (46 loc) · 966 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { HomeLayout } from "fumadocs-ui/layouts/home";
import type { LinkItemType } from "fumadocs-ui/layouts/shared";
import type { ReactNode } from "react";
import { baseOptions } from "@/app/layout.config";
const links = [
{
active: "nested-url",
text: "Docs",
url: "/docs/getting-started/typescript",
},
{
active: "nested-url",
text: "Rules",
url: "/docs/rules",
},
{
active: "nested-url",
text: "Presets",
url: "/docs/presets",
},
{
active: "nested-url",
text: "Recipes",
url: "/docs/recipes",
},
{
active: "nested-url",
text: "Packages",
url: "/docs/packages",
},
{
active: "nested-url",
text: "Changelog",
url: "/docs/changelog",
},
] as const satisfies LinkItemType[];
export default function Layout({ children }: { children: ReactNode }) {
return (
<HomeLayout
{...baseOptions}
links={links}
>
{children}
</HomeLayout>
);
}