A hook that registers a media manager and handles cleanup.

Parameters:
NameTypeAttributesDescription
idstring<optional>

The media manager id.

onMediaSelectfunction<optional>

The callback to run when media is selected.

optionsRecord.<string, any><optional>

The options for the media manager.

Since
  • 4.1.0