Skip to content

Instantly share code, notes, and snippets.

@sendbird-community
Created April 27, 2023 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sendbird-community/dfd4799708af5902653ce286f63e8ec2 to your computer and use it in GitHub Desktop.
Save sendbird-community/dfd4799708af5902653ce286f63e8ec2 to your computer and use it in GitHub Desktop.
export default function UserStatus({
setShowUserStatus,
selectedUser,
userStatus,
}) {
return (
<div className="bg-modal" style={{ display: "flex" }}>
<div className="modal-content users-list">
<div
className="users_list_close_btn"
onClick={() => setShowUserStatus(false)}
>
+
</div>
<h3 id="user_status_title">Users online status</h3>
<h5 id="user_status">
{selectedUser.nickname} is {userStatus}
</h5>
</div>
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment