package components import ( tea "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/lipgloss" ) type Sidebar struct { data string } func (s Sidebar) Update(msg tea.Msg) (tea.Model, tea.Cmd) { switch m := msg.(type) { case tea.KeyMsg: switch m.String() { case "up": } } } func (s Sidebar) View() string { sidebar := lipgloss. NewStyle(). BorderStyle(lipgloss.NormalBorder()). Padding(1, 2). Render(s.data) return sidebar }