What useEditorState gives: the editor’s status, its workbook’s name, and its edits.
useEditorState
editedCount
number
fileName
string
status
"error"
"empty"
"loading"
"ready"
unsaved
boolean