A hook that registers a media manager and handles cleanup.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id | string | <optional> | The media manager id. |
onMediaSelect | function | <optional> | The callback to run when media is selected. |
options | Record.<string, any> | <optional> | The options for the media manager. |
- Since
- 4.1.0