package modes

import "github.com/patriceckhart/zot/packages/tui"

// welcomeBanner returns the intro text shown at the top of an empty chat.
// It uses the `zot` label color (same as the assistant) for consistency.
//
// When version is non-empty AND showVersion is true, the headline
// reads "i'm zot (vX.Y.Z). ..." so users see which build they're on
// the moment zot starts. After welcomeVersionDuration the caller
// flips showVersion off and the headline reverts to plain text.
func welcomeBanner(th tui.Theme, version string, showVersion bool) []string {
	text := "i'm zot. yet another coding agent harness."
	if showVersion && version != "" {
		text = "i'm zot (" + version + "). yet another coding agent harness."
	}
	headline := th.AccentBar(th.Assistant) + th.FG256(th.Assistant, tui.Bold(text))
	return []string{
		headline,
		th.FG256(th.Muted, "  ask anything, or type /help to see commands."),
		"",
	}
}
