Last active
October 11, 2020 21:41
-
-
Save annacoding2020/8fe0f6f980713101a47f5c1e7958db53 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function Avatar({ username, src, usernameIsHidden = false }) { | |
| return ( | |
| <div> | |
| <img src={src} /> | |
| {!usernameIsHidden && <h4 data-testid="username">{username}</h4>} | |
| </div> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment