This commit is contained in:
Kujtim Hoxha
2025-03-21 18:20:28 +01:00
commit 4b0ea68d7a
28 changed files with 2229 additions and 0 deletions

19
internal/tui/page/repl.go Normal file
View File

@@ -0,0 +1,19 @@
package page
import (
tea "github.com/charmbracelet/bubbletea"
"github.com/kujtimiihoxha/termai/internal/tui/components/repl"
"github.com/kujtimiihoxha/termai/internal/tui/layout"
)
var ReplPage PageID = "repl"
func NewReplPage() tea.Model {
return layout.NewBentoLayout(
layout.BentoPanes{
layout.BentoLeftPane: repl.NewThreadsCmp(),
layout.BentoRightTopPane: repl.NewMessagesCmp(),
layout.BentoRightBottomPane: repl.NewEditorCmp(),
},
)
}