Files
docs/apps/bot-docs/app/provider.tsx
zooqueen 30f02bfa90 feat: add Hanzo Search + AI chat integration to bot-docs
Wire up full-text search and RAG chat for docs.hanzo.bot using the
Hanzo Search cloud-api endpoints with store=bot-docs. Includes search
dialog, page tree jump-to, and direct browser-to-API chat transport.
2026-03-02 11:36:03 -08:00

29 lines
702 B
TypeScript

'use client';
import { RootProvider } from '@hanzo/docs/ui/provider/base';
import dynamic from 'next/dynamic';
import type { ReactNode } from 'react';
import { TooltipProvider } from '@radix-ui/react-tooltip';
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 }}
>
<TooltipProvider>
<AISearch>
{children}
</AISearch>
</TooltipProvider>
</RootProvider>
);
}