Tip: You can fork the sandbox, insert your CometChat credentials (App ID, Region, Auth Key.) in the code, and immediately preview how the UI and messages respond in real time.

Sidebar component which will render different conversations.
CometChatSelector folder inside your src directory and add the following files:
App.tsx & App.css files to import these new components as below,