Custom header components

The config exposes headerLeft and headerRight components.

import { Editor, Config } from "@tyzo/page-editor";

const config: Config = {
  headerLeft: (
    <Button onClick={onClose}>
      Close
    </Button>
  ),
  headerRight: (
    <Button onClick={onPublish}>
      Publish
    </Button>
  ),
  components: {
    ...
  }
}