refactor(notes): split NoteEditor into NoteForm and NoteReadView

This commit is contained in:
devcodetools committed 2026-09-13 17:47:13 +02:00
1 parent 7325485ee3
commit e13652a753
5 files changed
+195 -110

No files matched your search

+6
View File
@@ -17,6 +17,12 @@ export interface CreateNoteEditorProps {
export type NoteEditorProps = EditNoteEditorProps | CreateNoteEditorProps
export interface NoteReadViewProps {
note: Note
onEdit: () => void
onDelete: (id: number) => void
}
export interface NoteFormProps {
title: string
content: string