UnsavedChangesDialog component
Displays a dialog when the user attempts to close the whiteboard with unsaved changes, giving them the option to save, discard, or cancel.
<UnsavedChangesDialog open={showDialog} onSave={() => handleSave()} onDiscard={() => handleDiscard()} onCancel={() => setShowDialog(false)}/> Copy
<UnsavedChangesDialog open={showDialog} onSave={() => handleSave()} onDiscard={() => handleDiscard()} onCancel={() => setShowDialog(false)}/>
UnsavedChangesDialog component
Displays a dialog when the user attempts to close the whiteboard with unsaved changes, giving them the option to save, discard, or cancel.