import type {ComponentProps, ElementType} from 'react' import React from 'react' import {useEditorStore} from '../store' import {createPortal} from '@react-three/fiber' export type EditorHelperProps = { component: T } & ComponentProps const EditorHelper = ({ component: Component, ...props }: EditorHelperProps) => { if (process.env.NODE_ENV === 'development') { const helpersRoot = useEditorStore((state) => state.helpersRoot) return <>{createPortal(, helpersRoot)} } else { return null } } export default EditorHelper