diff --git a/src/App.vue b/src/App.vue
index eaf52cd..773ff76 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,16 +2,39 @@
import { ref } from 'vue'
import Item from "./components/Item.vue";
import Edit from "./components/Edit.vue";
+import { Note } from "./models/Note";
-const items = ref([{title: 'Item 1'}, {title: 'Item 2'}, {title: 'Item 3'}])
+const notes = ref([new Note(undefined, 'Make SUS'), new Note(undefined, 'аырофщшгвыпгыфа')])
+const currentNote = ref(new Note())
+
+function processNote(note: Note) {
+ const index = notes.value.findIndex((item) => item.id === note.id)
+ if (index !== -1) {
+ notes.value[index] = note
+ }
+ else {
+ notes.value.push(note)
+ }
+}
+
+function deleteNote(note: Note) {
+ notes.value = notes.value.filter((item) => item.id !== note.id)
+}
+
+function editNote(note: Note) {
+ currentNote.value = note
+}
-
+
-
+