Files
docs/apps/bot-docs/app/provider.tsx
zeekayandHanzo Dev ebb4ddba95 The bot docs render again, on the base-ui chrome and with brand marks that exist
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]>
2026-09-25 23:58:52 -07:00

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>
);
}