mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
27 lines
667 B
TypeScript
27 lines
667 B
TypeScript
'use client';
|
|
|
|
import { RootProvider } from 'fumadocs-ui/provider/next';
|
|
import dynamic from "next/dynamic";
|
|
import { ReactNode } from 'react';
|
|
|
|
import MixpanelProvider from '@/components/mixpanel-provider';
|
|
import PlausibleProvider from '@/components/plausible-provider';
|
|
|
|
const SearchDialog = dynamic(() => import("@/components/inkeep-search"));
|
|
|
|
export function Providers({ children }: { children: ReactNode }) {
|
|
return (
|
|
<RootProvider
|
|
search={{
|
|
enabled: true,
|
|
SearchDialog: SearchDialog as any,
|
|
}}
|
|
>
|
|
<PlausibleProvider />
|
|
<MixpanelProvider>
|
|
{children}
|
|
</MixpanelProvider>
|
|
</RootProvider>
|
|
);
|
|
}
|