main
6d86999 ยท 6 months ago 26 commits
 1package sections
 2
 3const (
 4	StatsSection = iota
 5	PolicySection
 6	RulesSection
 7)
 8
 9// All section models implement the following common methods:
10//   - Focus()         - activates the section and resets cursor position
11//   - Blur()          - deactivates the section and clears overlays/menus
12//   - HasOpenMenu()   - returns true if a menu overlay is displayed
13//   - GetMenu()       - returns the current menu or nil
14//
15// Note: Update() and View() have different signatures per section
16// because they depend on different data (stats, policy, or rules).