Download src/LogsDisplay.jsx from mxhulab/ahaha: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/spaces/mxhulab/ahaha/resolve/main/src/LogsDisplay.jsx
- Command line
-
hf download hf://spaces/mxhulab/ahaha/src/LogsDisplay.jsx
-
curl -L -o LogsDisplay.jsx https://huggingface.co/spaces/mxhulab/ahaha/resolve/main/src/LogsDisplay.jsx
445 Bytes
| import 'bootstrap/dist/css/bootstrap.min.css'; | |
| import './LogsDisplay.css'; | |
| function LogsDisplay({logs}) { | |
| return ( | |
| <> | |
| {logs.map((log, index) => ( | |
| <div className="log-entry" key={index}> | |
| {(log.type == "info" ? | |
| <span className="log-info">{log.message}</span> : | |
| <span className="log-final">{log.message}</span> | |
| )} | |
| </div> | |
| ))} | |
| </> | |
| ); | |
| } | |
| export default LogsDisplay; | |