mirror of
https://github.com/zap-proto/zap-proto.github.io.git
synced 2026-10-30 15:02:56 +00:00
- Replace fumadocs with @hanzo/docs-* packages - Add virtual module resolution for @hanzo/docs-mdx:collections - Upgrade to Next.js 16 with Tailwind CSS 4 - Fix TypeScript types for MDX page data - Add Tab and Tabs components for MDX content - Replace unsupported capnp code blocks with text - Remove tailwind.config.ts (Tailwind 4 uses CSS config) - Create provider component for RootProvider
17 lines
349 B
TypeScript
17 lines
349 B
TypeScript
'use client';
|
|
import { RootProvider } from '@hanzo/docs-radix-ui/provider/next';
|
|
import { type ReactNode } from 'react';
|
|
|
|
export function Provider({ children }: { children: ReactNode }) {
|
|
return (
|
|
<RootProvider
|
|
theme={{
|
|
defaultTheme: 'dark',
|
|
attribute: 'class',
|
|
}}
|
|
>
|
|
{children}
|
|
</RootProvider>
|
|
);
|
|
}
|