Files
zeekayandHanzo Dev 81dab5875c The docs typecheck passes on its own terms
Three things it could not see. loader is generic, so annotating the source memo
with ReturnType<typeof loader> instantiated it with no type arguments and
collapsed the page data to its base type — body, toc and full all went missing
while fumadocs exported them the whole time; a wrapper's return type is the
instantiated generic, so they survive and the memo still prevents the circular
reference it was written for. mdx-components imports MDXComponents from
mdx/types, which nothing declared. And the sans face is Zen: ZenSans has never
been exported by @hanzo/font.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 14:47:35 -07:00

40 lines
1.0 KiB
TypeScript

import "./global.css"
import { RootProvider } from "fumadocs-ui/provider/next"
import { ZenMono } from "@hanzo/font/mono"
import { Zen } from "@hanzo/font/sans"
import type { ReactNode } from "react"
export const metadata = {
title: {
default: "BIP32 HD Wallet Implementation Documentation",
template: "%s | BIP32 HD Wallet Implementation",
},
description: "Hierarchical deterministic wallet key derivation",
}
export default function Layout({ children }: { children: ReactNode }) {
return (
<html
lang="en"
className={`${Zen.variable} ${ZenMono.variable}`}
suppressHydrationWarning
>
<body className="min-h-svh bg-background font-sans antialiased">
<RootProvider
search={{
enabled: true,
}}
theme={{
enabled: true,
defaultTheme: "dark",
}}
>
<div className="relative flex min-h-svh flex-col bg-background">
{children}
</div>
</RootProvider>
</body>
</html>
)
}