-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathmdx-components.tsx
51 lines (48 loc) · 1.54 KB
/
mdx-components.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { Callout } from "@/components/content/callout";
import { Disclosure } from "@/components/content/disclosure";
import { Embed } from "@/components/content/embed";
import { ExternalResource } from "@/components/content/external-resource";
import { Figure } from "@/components/content/figure";
import { Grid, GridItem } from "@/components/content/grid";
import { Link as ContentLink } from "@/components/content/link";
import { LinkButton } from "@/components/content/link-button";
import { Quiz, QuizErrorMessage, QuizSuccessMessage } from "@/components/content/quiz";
import { QuizChoice, QuizChoiceAnswer, QuizChoiceQuestion } from "@/components/content/quiz-choice";
import { QuizTextInput } from "@/components/content/quiz-text-input";
import { ServerImage as Image } from "@/components/content/server-image";
import { TableOfContents } from "@/components/content/table-of-contents";
import { Tab, Tabs } from "@/components/content/tabs";
import { Video } from "@/components/content/video";
import { VideoCard } from "@/components/content/video-card";
import { Link } from "@/components/link";
const components = {
a: Link,
Callout,
Disclosure,
Embed,
ExternalResource,
Figure,
Grid,
GridItem,
img: Image,
Link: ContentLink,
LinkButton,
Quiz,
QuizChoice,
QuizChoiceAnswer,
QuizChoiceQuestion,
QuizErrorMessage,
QuizSuccessMessage,
QuizTextInput,
Tab,
TableOfContents,
Tabs,
Video,
VideoCard,
};
declare global {
type MDXProvidedComponents = typeof components;
}
export function useMDXComponents(): MDXProvidedComponents {
return components;
}