diff --git a/src/app/editor/notes/merge-notes.component.html b/src/app/editor/notes/merge-notes.component.html
new file mode 100644
index 0000000..30395b7
--- /dev/null
+++ b/src/app/editor/notes/merge-notes.component.html
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+ Original note
+
+
+ Imported note
+
+
+
+
+ Note to save
+
+
+ Preview
+
+
+
\ No newline at end of file
diff --git a/src/app/editor/notes/notes.component.ts b/src/app/editor/notes/notes.component.ts
index f1dc5d4..df1be2a 100644
--- a/src/app/editor/notes/notes.component.ts
+++ b/src/app/editor/notes/notes.component.ts
@@ -13,6 +13,11 @@ interface DialogData {
note?: string;
}
+interface MergeDialogData {
+ originalNote: string;
+ importedNote: string;
+}
+
@Component({
selector: 'notes',
templateUrl: './notes.component.html',
@@ -57,3 +62,29 @@ export class EditNotesComponentDialog {
this.dialogRef.close();
}
}
+
+@Component({
+ selector: 'notes-merger',
+ templateUrl: 'merge-notes.component.html',
+ standalone: true,
+ imports: [CommonModule, FormsModule, MatDialogModule, MatFormFieldModule, MatInputModule, FormsModule, MatButtonModule, NotesComponent, ScalableComponent],
+ encapsulation: ViewEncapsulation.None,
+})
+export class MergeNotesComponentDialog {
+ originalNote: string;
+ importedNote: string;
+ resultNote: string;
+
+ constructor(
+ public dialogRef: MatDialogRef,
+ @Inject(MAT_DIALOG_DATA) public data: MergeDialogData,
+ ) {
+ this.originalNote = data.originalNote;
+ this.importedNote = data.importedNote;
+ this.resultNote = data.originalNote;
+ }
+
+ cancel() {
+ this.dialogRef.close();
+ }
+}