Spaces:
Running
Running
Download frontend/src/components/Toasts.jsx from chesstb/explorer: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/chesstb/explorer/resolve/main/frontend/src/components/Toasts.jsx
- Command line
-
hf download hf://spaces/chesstb/explorer/frontend/src/components/Toasts.jsx
-
curl -L -o Toasts.jsx https://huggingface.co/spaces/chesstb/explorer/resolve/main/frontend/src/components/Toasts.jsx
330 Bytes
| export default function Toasts({ toasts }) { | |
| return ( | |
| <div id="toast-container" className="toast-container" aria-live="polite" aria-atomic="false"> | |
| {toasts.map(t => ( | |
| <div key={t.id} className={`toast${t.leaving ? ' is-out' : ''}`}>{t.message}</div> | |
| ))} | |
| </div> | |
| ); | |
| } | |