mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-27 09:19:53 +00:00
Every page of apps/bot-docs answered 500: its root layout took TreeContextProvider from @hanzo/docs/ui, which now re-exports @hanzo/docs-gui's contexts, a module with no provider and no 'use client'. The app imports the chrome from @hanzo/docs-base-ui, as docs does. The home page drew lucide's GithubIcon and ChromeIcon, which lucide 1.x no longer ships; they are @hanzo/ui's brand marks now. The OpenClaw migration guide renders with the rest. Co-authored-by: Hanzo Dev <[email protected]>
26 lines
593 B
TypeScript
26 lines
593 B
TypeScript
'use client';
|
|
|
|
import { RootProvider } from '@hanzo/docs-base-ui/provider/base';
|
|
import dynamic from 'next/dynamic';
|
|
import type { ReactNode } from 'react';
|
|
import { AISearch } from '@/components/ai/search';
|
|
|
|
const SearchDialog = dynamic(() => import('@/components/layouts/search'), {
|
|
ssr: false,
|
|
});
|
|
|
|
export function Provider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<RootProvider
|
|
search={{
|
|
SearchDialog,
|
|
}}
|
|
theme={{ defaultTheme: 'dark', enableSystem: false }}
|
|
>
|
|
<AISearch>
|
|
{children}
|
|
</AISearch>
|
|
</RootProvider>
|
|
);
|
|
}
|