()
| 728 | const isWebdav = store.serviceType === ServiceType.WEBDAV; |
| 729 | |
| 730 | const validateShareXConfig = () => { |
| 731 | try { |
| 732 | parseShareXConfig(store.sharexConfig || ""); |
| 733 | showToast("ShareX config is valid", Toasts.Type.SUCCESS); |
| 734 | } catch (error) { |
| 735 | const message = error instanceof Error ? error.message : "Invalid ShareX config"; |
| 736 | showToast(message, Toasts.Type.FAILURE); |
| 737 | } |
| 738 | }; |
| 739 | |
| 740 | const triggerShareXFileUpload = () => { |
| 741 | sharexFileInputRef.current?.click(); |
nothing calls this directly
no test coverage detected