mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-27 09:19:53 +00:00
24 lines
609 B
TypeScript
24 lines
609 B
TypeScript
import type { MDXComponents } from 'mdx/types';
|
|
import defaultComponents from '@hanzo/docs-ui/mdx';
|
|
import { DynamicModelTable, DynamicCostExamples } from './components/DynamicModelTable';
|
|
import { ModelTable } from './components/ModelTable';
|
|
|
|
export function useMDXComponents(components: MDXComponents): MDXComponents {
|
|
return {
|
|
...defaultComponents,
|
|
DynamicModelTable,
|
|
DynamicCostExamples,
|
|
ModelTable,
|
|
...components,
|
|
};
|
|
}
|
|
|
|
export function getMDXComponents(): MDXComponents {
|
|
return {
|
|
...defaultComponents,
|
|
DynamicModelTable,
|
|
DynamicCostExamples,
|
|
ModelTable,
|
|
};
|
|
}
|