-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathmdx-components.js
More file actions
26 lines (22 loc) · 964 Bytes
/
mdx-components.js
File metadata and controls
26 lines (22 loc) · 964 Bytes
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
import { useMDXComponents as getDocsMDXComponents } from 'nextra-theme-docs'
// import { Application, Entity } from '@playcanvas/react'
// import { OrbitControls } from '@playcanvas/react/scripts'
// import { Align, Light, Anim, Camera, Collision, EnvAtlas, GSplat, Script, Render, RigidBody } from '@playcanvas/react/components'
import { Application } from '@playcanvas/react'
import ReactQueryProvider from '@/docs-components/ReactQueryProvider'
import EnvAtlasComponent from '@components/EnvAtlas'
import Grid from '@components/Grid'
import PostEffects, { StaticPostEffects} from '@components/PostEffects'
import ShadowCatcher from '@components/ShadowCatcher'
import AutoRotate from '@components/AutoRotate'
import { MotionEntity, MotionLight } from '@components/MotionEntity'
export const defaultComponents = {
ReactQueryProvider,
Application
}
export function useMDXComponents(components) {
return {
...components,
...defaultComponents
}
}