Download NetflixClone/src/components/UI/ProfileCard/ProfileCard.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 353 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/ProfileCard/ProfileCard.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/ProfileCard/ProfileCard.js
-
curl -L -o ProfileCard.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/ProfileCard/ProfileCard.js
353 Bytes
| import React from 'react' | |
| import './ProfileCard.css' | |
| const ProfileCard = props => { | |
| return ( | |
| <div className={props.dropdown ? "ProfileCardDropdown": "ProfileCard"} onClick={props.onClick}> | |
| <img src={props.profileImage} alt="profile" /> | |
| <span>{props.username}</span> | |
| </div> | |
| ) | |
| } | |
| export default ProfileCard |