Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download web/src/sheet/ExportDialog.tsx from fsanyoto/runloopable: direct link, hf CLI and curl.
- Browser
- Download file 838 Bytes
-
https://huggingface.co/spaces/fsanyoto/runloopable/resolve/main/web/src/sheet/ExportDialog.tsx
- Command line
-
hf download hf://spaces/fsanyoto/runloopable/web/src/sheet/ExportDialog.tsx
-
curl -L -o ExportDialog.tsx https://huggingface.co/spaces/fsanyoto/runloopable/resolve/main/web/src/sheet/ExportDialog.tsx
838 Bytes
| import "../styles/sdlc73/sheet.css"; | |
| /** The ribbon owns the overlay and the captured download. */ | |
| export default function ExportDialog({ losses, label, busy, onBack, onDownload }: { | |
| losses: string[]; label: string; busy: boolean; onBack: () => void; onDownload: () => void; | |
| }) { | |
| if (!losses.length) return null; | |
| return <div className="sheet-export-review"> | |
| <button type="button" className="sheet-ribbon-item" disabled={busy} onClick={onBack}>Back</button> | |
| <div className="sheet-export-losses" data-testid="sheet-export-losses" role="note" aria-label="Export changes"> | |
| <strong>Export changes</strong> | |
| <ul>{losses.map(loss => <li key={loss}>{loss}</li>)}</ul> | |
| </div> | |
| <button type="button" className="sheet-ribbon-item" autoFocus disabled={busy} onClick={onDownload}>Download {label}</button> | |
| </div>; | |
| } | |