TheMathemagicians/sevenkeys/tui/home/model.go

32 lines
396 B
Go
Raw Normal View History

2024-06-08 15:32:19 +00:00
package home
2024-06-05 12:06:24 +00:00
2024-06-05 13:13:29 +00:00
import (
"github.com/charmbracelet/bubbles/help"
)
2024-06-08 15:47:06 +00:00
type SessionState int
const (
Home SessionState = iota
Update
)
type HomeModel struct {
2024-06-05 12:06:24 +00:00
WindowHeight int
WindowWidth int
2024-06-05 13:13:29 +00:00
2024-06-08 15:47:06 +00:00
State SessionState
2024-06-05 13:13:29 +00:00
Help help.Model
2024-06-05 12:06:24 +00:00
}
2024-06-08 15:47:06 +00:00
func NewHomeModel() HomeModel {
2024-06-05 13:13:29 +00:00
help := help.New()
help.ShortSeparator = help.FullSeparator
return Model{
2024-06-08 15:47:06 +00:00
Help: help,
SessionState: Home,
2024-06-05 13:13:29 +00:00
}
2024-06-05 12:06:24 +00:00
}