Configure when / what to ask the user before closing the composer.
The provided callback will be used to determine whether asking for
confirmation is necessary. If the callback returns true at the time of
closing, the provided text will be shown in a standard confirmation dialog.
callback: (() => boolean)
Confirm with the user that they want to close the composer and lose their
The dynamic component being shown inside the composer.