Edit button not visible when opening document in view mode

I am running document server in docker and using the react component. When I open a document in view mode, there should be a button to switch to edit mode (AFAIK), but there isn’t one. What might be up?

<EditorComponent
  id="docxEditor"
  documentServerUrl="http://localhost:7777"
  config={{
    document: {
      fileType: 'docx',
      key: document.id,
      title: document.filename,
      url: document.url,
    },
    height: '100%',
    documentType: 'word',
    editorConfig: {
      callbackUrl: 'http://dummy_callback_service/',
      mode: 'view',
    },
  }}
/>

Hello @mjuopperi-midaxo
It seems that you have to implement this event: ONLYOFFICE Api Documentation - Config
This way the Edit Document button appears.