56 lines
751 B
TypeScript
56 lines
751 B
TypeScript
|
import * as customComponents from '../article-components'
|
||
|
import * as apiComponents from './api-docs'
|
||
|
import {
|
||
|
A,
|
||
|
ApiHeading,
|
||
|
Blockquote,
|
||
|
Divider,
|
||
|
Embed,
|
||
|
Heading1,
|
||
|
Heading2,
|
||
|
Heading3,
|
||
|
Heading4,
|
||
|
Heading5,
|
||
|
Heading6,
|
||
|
Image,
|
||
|
ListItem,
|
||
|
OrderedList,
|
||
|
Paragraph,
|
||
|
Small,
|
||
|
TD,
|
||
|
THead,
|
||
|
TR,
|
||
|
Table,
|
||
|
UnorderedList,
|
||
|
Video,
|
||
|
} from './generic'
|
||
|
|
||
|
export const components = {
|
||
|
h1: Heading1,
|
||
|
h2: Heading2,
|
||
|
h3: Heading3,
|
||
|
h4: Heading4,
|
||
|
h5: Heading5,
|
||
|
h6: Heading6,
|
||
|
blockquote: Blockquote,
|
||
|
hr: Divider,
|
||
|
a: A,
|
||
|
p: Paragraph,
|
||
|
table: Table,
|
||
|
thead: THead,
|
||
|
tr: TR,
|
||
|
td: TD,
|
||
|
video: Video,
|
||
|
ol: OrderedList,
|
||
|
ul: UnorderedList,
|
||
|
li: ListItem,
|
||
|
img: Image,
|
||
|
Small: Small,
|
||
|
Image,
|
||
|
Video,
|
||
|
Embed,
|
||
|
ApiHeading,
|
||
|
...customComponents,
|
||
|
...apiComponents,
|
||
|
}
|