-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrap-root-element.tsx
87 lines (85 loc) · 3.2 KB
/
wrap-root-element.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import React from 'react'
import { MDXProvider } from '@mdx-js/react'
import { Code } from './src/components/Code'
import { preToCodeBlock } from 'mdx-utils'
import A from './src/components/A'
import FindOutMore from './src/components/FindOutMore'
import Features from './src/components/Features'
import Cta from './src/components/CTA'
import Callout from './src/components/Callout'
import CalloutDanger from './src/components/Callout/CalloutDanger'
import CalloutLabel from './src/components/Callout/CalloutLabel'
import WavyHr from './src/components/WavyHr'
import Center from './src/components/Center'
import CenterItem from './src/components/CenterItem'
import ListGrid from './src/components/ListGrid'
import VideoOne from './src/components/CloudinaryVideo/videoOne'
import VideoTwo from './src/components/CloudinaryVideo/videoTwo'
import VideoThree from './src/components/CloudinaryVideo/videoThree'
import VideoFive from './src/components/CloudinaryVideo/videoFive'
import VideoSeven from './src/components/CloudinaryVideo/videoSeven'
import Love from './src/components/CloudinaryVideo/love'
import CloudinaryVideo from './src/components/CloudinaryVideo'
import Accordion from './src/components/Accordion'
import SingleAccordion from './src/components/SingleAccordion'
import Table from './src/components/Table'
import Modal from './src/components/Modal'
import Section from './src/components/Section'
import Popper from './src/components/Popper'
import UserProfile from './src/components/UserProfile'
import Left from './src/components/Left'
import LeftText from './src/components/LeftText'
import ColumnGridTwo from './src/components/ColumnGridTwo'
import ColumnGridThree from './src/components/ColumnGridThree'
import VideoWrapper from './src/components/VideoWrapper'
import Confetti from './src/components/Confetti'
import HoverMenu from './src/components/HoverMenu'
import ImageColWrapperPage from './src/components/ImageColWrapper'
import IframeWrapperLarge from './src/components/IframeWrapperLarge'
const Acronym = (props) => <abbr style={{ color: '#8b5cf6' }} {...props} />
const components = {
abbr: Acronym,
A: A,
FindOutMore: FindOutMore,
Center: Center,
CenterItem: CenterItem,
Cta: Cta,
Features: Features,
WavyHr: WavyHr,
Callout: Callout,
CalloutDanger: CalloutDanger,
CalloutLabel: CalloutLabel,
ListGrid: ListGrid,
CloudinaryVideo: CloudinaryVideo,
VideoOne: VideoOne,
VideoTwo: VideoTwo,
VideoThree: VideoThree,
VideoFive: VideoFive,
VideoSeven: VideoSeven,
Accordion: Accordion,
SingleAccordion: SingleAccordion,
Table: Table,
Modal: Modal,
Section: Section,
Popper: Popper,
UserProfile: UserProfile,
Left: Left,
LeftText: LeftText,
ColumnGridTwo: ColumnGridTwo,
ColumnGridThree: ColumnGridThree,
VideoWrapper: VideoWrapper,
Confetti: Confetti,
Love: Love,
HoverMenu: HoverMenu,
ImageColWrapperPage: ImageColWrapperPage,
IframeWrapperLarge: IframeWrapperLarge,
pre: (preProps) => {
const props = preToCodeBlock(preProps)
if (props) {
return <Code {...props} />
} else {
return <pre className="gatsby-highlight" {...preProps} />
}
},
}
export const wrapRootElement = ({ element }) => <MDXProvider components={components}>{element}</MDXProvider>