mirror of
https://github.com/zap-proto/zap-proto.github.io.git
synced 2026-10-30 15:02:56 +00:00
- Add SchemaTabs component with syntax highlighting for both formats - Update all docs pages to use SchemaTabs with both syntaxes - Register SchemaTabs in MDX components for docs pages - Add file ID annotations to capnp examples to show the difference
17 lines
444 B
TypeScript
17 lines
444 B
TypeScript
import type { MDXComponents } from 'mdx/types';
|
|
import defaultMdxComponents from '@hanzo/docs-radix-ui/mdx';
|
|
import { Tab, Tabs } from '@hanzo/docs-radix-ui/components/tabs';
|
|
import { SchemaTabs } from './components/schema-tabs';
|
|
|
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultMdxComponents,
|
|
Tab,
|
|
Tabs,
|
|
SchemaTabs,
|
|
...components,
|
|
};
|
|
}
|
|
|
|
export { Tab, Tabs, SchemaTabs };
|