Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created September 23, 2021 15:04
Show Gist options
  • Save sendbird-community/f729133cd733e6b1599cc7f405a64ba0 to your computer and use it in GitHub Desktop.
Save sendbird-community/f729133cd733e6b1599cc7f405a64ba0 to your computer and use it in GitHub Desktop.
const conversationChatWindow = () => {
if (currentChannel && currentChannel.url.includes('group_channel')){
return <GroupChannelConversation
currentChannelUrl={currentChannelUrl}
setShowSettings={setShowSettings}
showSettings={showSettings}
userId={USER_ID}
/>
} else if (currentChannel && currentChannel.url.includes('open_channel') ){
return <OpenChannelConversation
currentChannelUrl={currentChannelUrl}
setShowSettings={setShowSettings}
showSettings={showSettings}
/>
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment