import { Box, BoxProps } from '@chakra-ui/react' import { CodeEditorProps, PreviewProps, SandpackCodeEditor, SandpackLayout, SandpackLayoutProps, SandpackPreview, SandpackProvider, } from '@codesandbox/sandpack-react' import { nightOwl } from '@codesandbox/sandpack-themes' type Props = BoxProps & { dependencies?: Record devDependencies?: Record layoutOptions?: SandpackLayoutProps editorOptions?: CodeEditorProps previewOptions?: PreviewProps & BoxProps files: { [x: string]: string } isHorizontal?: boolean } const SandpackEmbed = ({ dependencies, devDependencies, layoutOptions, editorOptions, previewOptions, files, isHorizontal = false, }: Props) => { return ( ) } export default SandpackEmbed