add initial stuff
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
package repl
|
||||
|
||||
import tea "github.com/charmbracelet/bubbletea"
|
||||
import (
|
||||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/kujtimiihoxha/termai/internal/app"
|
||||
)
|
||||
|
||||
type messagesCmp struct{}
|
||||
type messagesCmp struct {
|
||||
app *app.App
|
||||
}
|
||||
|
||||
func (i *messagesCmp) Init() tea.Cmd {
|
||||
return nil
|
||||
@@ -16,6 +21,8 @@ func (i *messagesCmp) View() string {
|
||||
return "Messages"
|
||||
}
|
||||
|
||||
func NewMessagesCmp() tea.Model {
|
||||
return &messagesCmp{}
|
||||
func NewMessagesCmp(app *app.App) tea.Model {
|
||||
return &messagesCmp{
|
||||
app,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user