import {getProject} from '@theatre/core' import React from 'react' import {Canvas} from '@react-three/fiber' import studio from '@theatre/studio' import {editable as e, SheetProvider} from '@theatre/r3f' import extension from '@theatre/r3f/dist/extension' import playgroundState from './playgroundState.json' if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') { studio.extend(extension) studio.initialize({usePersistentStorage: false}) } const sheet = getProject('Playground - R3F', {state: playgroundState}).sheet( 'R3F-Canvas', ) // credit: https://codesandbox.io/s/camera-pan-nsb7f function Plane({color, theatreKey, ...props}) { return ( ) } function App() { return ( {/* @ts-ignore */} ) } export default function Home() { return }