mirror of
https://github.com/luxfi/go-bip32.git
synced 2026-09-24 00:24:44 +00:00
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]>
40 lines
1.0 KiB
TypeScript
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>
|
|
)
|
|
}
|