()
| 46 | }; |
| 47 | |
| 48 | const handleSave = async () => { |
| 49 | if (!hasUnsavedChanges || isSaving) return; |
| 50 | setIsSaving(true); |
| 51 | try { |
| 52 | await onSave(); |
| 53 | } finally { |
| 54 | setIsSaving(false); |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | return ( |
| 59 | <div className="h-full flex flex-col"> |