Sukka
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
beta/src/components/MDX/Sandpack/index.tsx
|
|
@ -3,10 +3,9 @@ |
|
|
|
*/ |
|
|
|
|
|
|
|
import * as React from 'react'; |
|
|
|
import dynamic from 'next/dynamic'; |
|
|
|
import {createFileMap} from './createFileMap'; |
|
|
|
|
|
|
|
const SandpackRoot = dynamic(() => import('./SandpackRoot'), {suspense: true}); |
|
|
|
const SandpackRoot = React.lazy(() => import('./SandpackRoot')); |
|
|
|
|
|
|
|
const SandpackGlimmer = ({code}: {code: string}) => ( |
|
|
|
<div className="sandpack-container my-8"> |
|
|
|