-
-
Save sendbird-community/8a9af176288961d7dbd4334cd77b9aaa to your computer and use it in GitHub Desktop.
How to utilize the OpenChannelSettings module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import OpenChannelSettings from '@sendbird/uikit-react/OpenChannelSettings'; | |
import { OpenChannelProvider, useOpenChannelContext } from '@sendbird/uikit-react/OpenChannelSettings/context'; | |
const MyComponent = () => { | |
const openChannelSettingsState = useOpenChannelSettingsContext(); | |
return ( | |
...render custom component | |
); | |
}; | |
<OpenChannelSettingsProvider> | |
<MyComponent /> | |
<OpenChannelSettingsProvider/> | |
const ModifiedModalView = () => { | |
const openChannelSettingsState = useOpenChannelSettingsContext(); | |
return ( | |
...render custom component | |
); | |
}; | |
<OpenChannelSettings | |
onChannelModified={ModifiedModalView} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment