Spaces:
Paused
Paused
Download ui/src/lib/comment-submit-draft.ts from testfirela/paperclip-app: direct link, hf CLI and curl.
- Browser
- Download file 190 Bytes
-
https://huggingface.co/spaces/testfirela/paperclip-app/resolve/main/ui/src/lib/comment-submit-draft.ts
- Command line
-
hf download hf://spaces/testfirela/paperclip-app/ui/src/lib/comment-submit-draft.ts
-
curl -L -o comment-submit-draft.ts https://huggingface.co/spaces/testfirela/paperclip-app/resolve/main/ui/src/lib/comment-submit-draft.ts
190 Bytes
| export function restoreSubmittedCommentDraft(params: { | |
| currentBody: string; | |
| submittedBody: string; | |
| }) { | |
| return params.currentBody.trim() ? params.currentBody : params.submittedBody; | |
| } | |