decent progress

This commit is contained in:
Joeri Exelmans 2025-05-11 22:54:23 +02:00
parent e901fc3f76
commit a9ae4f9888
14 changed files with 318 additions and 162 deletions

View file

@ -3,11 +3,11 @@ import { useEffect, useState } from 'react';
import './App.css'
import { Editor, initialEditorState, type EditorState } from './Editor'
export function App() {
const [state, setState] = useState<EditorState>(initialEditorState);
useEffect(() => {
window['APP_STATE'] = state;
// console.log("EDITOR STATE:", state);
}, [state]);
@ -18,7 +18,12 @@ export function App() {
</header>
<main>
<Editor state={state} setState={setState}></Editor>
<Editor
state={state}
setState={setState}
onResolve={() => {console.log("toplevel resolved")}}
onCancel={() => {console.log("toplevel canceled")}}
/>
</main>
<footer>