()
| 118 | const fileInfo = () => generatePermittedFileTypes(uploadThing.routeConfig()); |
| 119 | |
| 120 | const state = () => { |
| 121 | const ready = fileInfo().fileTypes.length > 0; |
| 122 | |
| 123 | if ($props.disabled) return "disabled"; |
| 124 | if (!ready) return "readying"; |
| 125 | if (!uploadThing.isUploading()) return "ready"; |
| 126 | return "uploading"; |
| 127 | }; |
| 128 | |
| 129 | const uploadFiles = (files: File[]) => { |
| 130 | const input = "input" in $props ? $props.input : undefined; |
no test coverage detected