package components import ( "fmt" "cburn/internal/tui/theme" "github.com/charmbracelet/lipgloss" ) // RenderStatusBar renders the bottom status bar. func RenderStatusBar(width int, filterInfo string, dataAge string) string { t := theme.Active style := lipgloss.NewStyle(). Foreground(t.TextMuted). Width(width) left := " [f]ilter [?]help [q]uit" right := "" if dataAge != "" { right = fmt.Sprintf("Data: %s ", dataAge) } if filterInfo != "" { left += " " + filterInfo } // Pad middle padding := width - lipgloss.Width(left) - lipgloss.Width(right) if padding < 0 { padding = 0 } bar := left for i := 0; i < padding; i++ { bar += " " } bar += right return style.Render(bar) }