Spaces:
Paused
Paused
Download novel-reader/src/components/Status.jsx from tanlang002/tupload07: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/spaces/tanlang002/tupload07/resolve/main/novel-reader/src/components/Status.jsx
- Command line
-
hf download hf://spaces/tanlang002/tupload07/novel-reader/src/components/Status.jsx
-
curl -L -o Status.jsx https://huggingface.co/spaces/tanlang002/tupload07/resolve/main/novel-reader/src/components/Status.jsx
467 Bytes
| export function Loading({ text = '加载中…' }) { | |
| return <div className="status">{text}</div>; | |
| } | |
| export function ErrorBox({ message, onRetry }) { | |
| return ( | |
| <div className="status error"> | |
| <p>{message}</p> | |
| {onRetry && ( | |
| <button className="btn" onClick={onRetry}> | |
| 重试 | |
| </button> | |
| )} | |
| </div> | |
| ); | |
| } | |
| export function Empty({ text = '没有找到相关内容' }) { | |
| return <div className="status">{text}</div>; | |
| } | |