()
| 609 | }; |
| 610 | |
| 611 | const handleFileUploadClick = () => { |
| 612 | if (!isAuthenticated) { |
| 613 | login(); |
| 614 | return; |
| 615 | } |
| 616 | |
| 617 | if (fileInputRef.current) { |
| 618 | fileInputRef.current.click(); |
| 619 | } |
| 620 | }; |
| 621 | |
| 622 | const handleFileSelect = async (event: React.ChangeEvent<HTMLInputElement>) => { |
| 623 | const files = event.target.files; |