Download NetflixClone/src/components/UI/CircularSoundButton/CircularSoundButton.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 565 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/CircularSoundButton/CircularSoundButton.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/CircularSoundButton/CircularSoundButton.js
-
curl -L -o CircularSoundButton.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/UI/CircularSoundButton/CircularSoundButton.js
565 Bytes
| import React from 'react' | |
| import './CircularSoundButton.css' | |
| import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | |
| import { faVolumeUp, faVolumeMute } from "@fortawesome/free-solid-svg-icons"; | |
| const circularSoundButton = props => { | |
| const { topTrailerSoundOn, topTrailerSoundButtonClickHandler } = props | |
| return ( | |
| <button className="RoundButton" onClick={topTrailerSoundButtonClickHandler}> | |
| <FontAwesomeIcon icon={topTrailerSoundOn ? faVolumeUp : faVolumeMute} /> | |
| </button> | |
| ) | |
| } | |
| export default circularSoundButton |