import React from 'react' import { ComponentType, FC } from 'react' import { useComponents } from '../hooks' export interface PlaygroundProps { className?: string style?: any wrapper?: ComponentType children: any __scope: Record __position: number __code: string useScoping?: boolean language?: string } export const Playground: FC = ({ className, children, style, wrapper, __scope, __position, __code, language, useScoping, }) => { const components = useComponents() const PlaygroundComponent = components.playground if (!PlaygroundComponent) return null return ( ) }