summaryrefslogtreecommitdiff
path: root/internal/quit
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 17:54:43 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-12-27 17:54:43 -0500
commit3b8fa0766a0050c0dd026be5d6a1ce2827956530 (patch)
treee6e6e0d05da592fe36aade35201a52898209ceb1 /internal/quit
parent858c07f0b805558b0961514200ffb822dd2248cf (diff)
All ui info in one location
Diffstat (limited to 'internal/quit')
-rw-r--r--internal/quit/quit.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/internal/quit/quit.go b/internal/quit/quit.go
index ac11abc..98c40a7 100644
--- a/internal/quit/quit.go
+++ b/internal/quit/quit.go
@@ -1,6 +1,9 @@
package quit
-import tea "github.com/charmbracelet/bubbletea"
+import (
+ "github.com/ChausseBenjamin/termpicker/internal/ui"
+ tea "github.com/charmbracelet/bubbletea"
+)
const byeMsg = "Goodbye!\n"
@@ -10,4 +13,4 @@ func (m Model) Init() tea.Cmd { return nil }
func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) { return m, nil }
-func (m Model) View() string { return byeMsg }
+func (m Model) View() string { return ui.Style().Quit.Render(byeMsg) }