SuperCoder/internal/tui/components/repl/messages.go

29 lines
434 B
Go
Raw Normal View History

2025-03-21 18:20:28 +01:00
package repl
2025-03-23 19:19:08 +01:00
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/kujtimiihoxha/termai/internal/app"
)
2025-03-21 18:20:28 +01:00
2025-03-23 19:19:08 +01:00
type messagesCmp struct {
app *app.App
}
2025-03-21 18:20:28 +01:00
func (i *messagesCmp) Init() tea.Cmd {
return nil
}
func (i *messagesCmp) Update(_ tea.Msg) (tea.Model, tea.Cmd) {
return i, nil
}
func (i *messagesCmp) View() string {
return "Messages"
}
2025-03-23 19:19:08 +01:00
func NewMessagesCmp(app *app.App) tea.Model {
return &messagesCmp{
app,
}
2025-03-21 18:20:28 +01:00
}