Files
supabase/apps/docs/features/docs/Reference.mdx.client.tsx
T
Ivan Vasilov cb1e3a8170 chore: Prep work for pnpm (#29610)
* Add all missing libraries in the packages/apps.

* Add all missing Vitest imports to the tests.

* Add some missing exports to ui.

* Fix the admonition export.

* Fix various minor bugs.

* Migrate the ui package to use vitest.
2024-10-01 11:29:37 +02:00

21 lines
542 B
TypeScript

'use client'
/**
* The MDXProvider is necessary so that MDX partials will have access
* to components.
*
* Since the reference pages are so heavy, keep the weight down by only
* including the bare minimum.
*/
import { MDXProvider } from '@mdx-js/react'
import { type PropsWithChildren } from 'react'
import { Admonition } from 'ui-patterns/admonition'
const components = { Admonition }
export function MDXProviderReference({ children }: PropsWithChildren) {
return <MDXProvider components={components}>{children}</MDXProvider>
}