Download src/components/Progress.jsx from AIWaveRiders/react-translator: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/AIWaveRiders/react-translator/resolve/main/src/components/Progress.jsx
- Command line
-
hf download hf://AIWaveRiders/react-translator/src/components/Progress.jsx
-
curl -L -o Progress.jsx https://huggingface.co/AIWaveRiders/react-translator/resolve/main/src/components/Progress.jsx
279 Bytes
| export default function Progress({ text, percentage }) { | |
| percentage = percentage ?? 0; | |
| return ( | |
| <div className="progress-container"> | |
| <div className='progress-bar' style={{ 'width': `${percentage}%` }}>{text} ({`${percentage.toFixed(2)}%`})</div> | |
| </div> | |
| ); | |
| } | |