mirror of
https://github.com/learnhouse/docs.git
synced 2026-11-28 16:58:38 +01:00
22 lines
546 B
JavaScript
22 lines
546 B
JavaScript
import { useMDXComponents as getDocsMDXComponents } from 'nextra-theme-docs'
|
|
import Wrapper from './components/Wrapper/Wrapper'
|
|
import CodeBlock from './components/CodeBlock/CodeBlock'
|
|
import { Table, Thead, Tbody, Tr, Th, Td } from './components/Table/Table'
|
|
|
|
const docsComponents = getDocsMDXComponents()
|
|
|
|
export function useMDXComponents(components) {
|
|
return {
|
|
...docsComponents,
|
|
...components,
|
|
wrapper: Wrapper,
|
|
pre: CodeBlock,
|
|
table: Table,
|
|
thead: Thead,
|
|
tbody: Tbody,
|
|
tr: Tr,
|
|
th: Th,
|
|
td: Td,
|
|
}
|
|
}
|