()
| 623 | }; |
| 624 | |
| 625 | const handleFileUploadClick = () => { |
| 626 | if (!isAuthenticated) { |
| 627 | login(); |
| 628 | return; |
| 629 | } |
| 630 | |
| 631 | if (fileInputRef.current) { |
| 632 | fileInputRef.current.click(); |
| 633 | } |
| 634 | }; |
| 635 | |
| 636 | const handleFileSelect = async (event: React.ChangeEvent<HTMLInputElement>) => { |
| 637 | const files = event.target.files; |