()
| 15 | const [tip, setTip] = useState("") |
| 16 | |
| 17 | function generateRandomString() { |
| 18 | const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
| 19 | let result = ''; |
| 20 | for (let i = 0; i < 10; i++) { |
| 21 | result += characters.charAt(Math.floor(Math.random() * characters.length)); |
| 22 | } |
| 23 | return result; |
| 24 | } |
| 25 | |
| 26 | function upload(url: string, file: File, onProgress: (event: ProgressEvent<EventTarget>) => void) { |
| 27 | return new Promise((res, rej) => { |
no outgoing calls
no test coverage detected
searching dependent graphs…