-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmdx-components.tsx
More file actions
41 lines (40 loc) · 2 KB
/
mdx-components.tsx
File metadata and controls
41 lines (40 loc) · 2 KB
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 defaultMdxComponents from 'fumadocs-ui/mdx';
import type { MDXComponents } from 'mdx/types';
import Image from 'next/image';
import { EarnBountyWebsite } from '@/components/earn-bounty-website';
import { SolanaBeachWebsite } from '@/components/solana-beach-website';
import SolanaExamQuiz from '@/components/solana-exam-quiz';
import SolanaCodingExamQuiz from '@/components/solana-coding-exam-quiz';
import SolanaInternshipExamQuiz from '@/components/solana-internship-exam-quiz';
import SolanaPracticeQuiz from '@/components/solana-practice-quiz';
import PhasePracticeSection from '@/components/phase-practice-section';
import BountySection from '@/components/bounty-section';
import GoogleSlidesEmbed from '@/components/google-slides-embed';
import LearningResources from '@/components/learning-resources';
import { FaucetWebsite } from './components/faucet-website';
import { TabbedContent, TabList, Tab, TabContent } from "@/components/ui/tabs"
import { GoogleCalendarEmbed } from "@/components/ui/google-calendar-embed"
// use this function to get MDX components, you will need it for rendering MDX
export function getMDXComponents(components?: MDXComponents): MDXComponents {
return {
...defaultMdxComponents,
Image: (props: any) => <Image {...props} />,
EarnBountyWebsite: () => <EarnBountyWebsite />,
SolanaBeachWebsite: () => <SolanaBeachWebsite />,
SolanaExamQuiz: () => <SolanaExamQuiz />,
SolanaCodingExamQuiz: () => <SolanaCodingExamQuiz />,
SolanaInternshipExamQuiz: () => <SolanaInternshipExamQuiz />,
SolanaPracticeQuiz: (props: any) => <SolanaPracticeQuiz {...props} />,
PhasePracticeSection: (props: any) => <PhasePracticeSection {...props} />,
BountySection: (props: any) => <BountySection {...props} />,
GoogleSlidesEmbed: (props: any) => <GoogleSlidesEmbed {...props} />,
LearningResources: () => <LearningResources />,
FaucetWebsite: () => <FaucetWebsite />,
TabbedContent,
TabList,
Tab,
TabContent,
GoogleCalendarEmbed,
...components
};
}