|
@@ -5,15 +5,14 @@ import type { ReactNode } from "react";
|
|
|
|
|
|
|
|
import { docsOptions } from "../../../config/layout.config";
|
|
import { docsOptions } from "../../../config/layout.config";
|
|
|
|
|
|
|
|
-export default function Layout({
|
|
|
|
|
|
|
+export default async function Layout({
|
|
|
children,
|
|
children,
|
|
|
params,
|
|
params,
|
|
|
}: {
|
|
}: {
|
|
|
children: ReactNode;
|
|
children: ReactNode;
|
|
|
- params: { section: string };
|
|
|
|
|
|
|
+ params: Promise<{ section: string }>;
|
|
|
}) {
|
|
}) {
|
|
|
- const { section } = params;
|
|
|
|
|
- const options = { ...docsOptions };
|
|
|
|
|
|
|
+ const { section } = await params;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<>
|
|
<>
|
|
@@ -37,7 +36,7 @@ export default function Layout({
|
|
|
</span>
|
|
</span>
|
|
|
</Banner>
|
|
</Banner>
|
|
|
)}
|
|
)}
|
|
|
- <DocsLayout {...options}>{children}</DocsLayout>
|
|
|
|
|
|
|
+ <DocsLayout {...docsOptions}>{children}</DocsLayout>
|
|
|
</>
|
|
</>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|