package tui

import "github.com/charmbracelet/lipgloss"

// DrawSeparator draws a horizontal separator line of the given width.
func DrawSeparator(width int, style lipgloss.Style, sepChar string) string {
	if sepChar == "" {
		sepChar = BoxSep
	}
	return style.Render(
		lipgloss.PlaceHorizontal(width, lipgloss.Left, sepChar, lipgloss.WithWhitespaceChars(sepChar)),
	)
}
