apps/jotts/tui/messages.go 505 B raw
1
package tui
2
3
import sharedtui "github.com/stevedylandev/andromeda/pkg/tui"
4
5
type notesLoadedMsg struct {
6
	Notes []Note
7
	Err   error
8
}
9
10
type noteSavedMsg struct {
11
	Note *Note
12
	Err  error
13
}
14
15
type noteDeletedMsg struct {
16
	ShortID string
17
	Err     error
18
}
19
20
type submitFormMsg struct {
21
	ShortID string
22
	Title   string
23
	Content string
24
}
25
26
type cancelFormMsg struct{}
27
28
type (
29
	statusMsg         = sharedtui.StatusMsg
30
	clearStatusMsg    = sharedtui.ClearStatusMsg
31
	editorFinishedMsg = sharedtui.EditorFinishedMsg
32
)