mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
* 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.
21 lines
542 B
TypeScript
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>
|
|
}
|