-
Notifications
You must be signed in to change notification settings - Fork 0
/
mdx-components.tsx
41 lines (39 loc) · 984 Bytes
/
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
import type { MDXComponents } from "mdx/types";
import { rendererMapLowercase } from "./lib/postRenderers";
import { AIResourcesTable } from "./components/AIResourcesTable/AIResourcesTable";
import * as headings from "./components/Headings";
import CoverImage from "./components/cover-image";
import { Badge } from "./components/ui/badge";
import {
Card,
CardTitle,
CardHeader,
CardFooter,
CardContent,
CardDescription,
AINewsletterCard,
} from "./components/ui/card";
import { TwitterLink } from "./components/Link";
import { PromptPatterns } from "./components/PromptPatterns";
export const mdxComponents = {
...rendererMapLowercase,
...headings,
CoverImage,
AIResourcesTable,
Badge,
Card,
CardContent,
CardHeader,
CardFooter,
CardTitle,
CardDescription,
PromptPatterns,
AINewsletterCard,
TwitterLink,
};
export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...components,
mdxComponents,
};
}