def state_seg
import cswap-bend-cli@0.1.0.0/tui/view.bend as Viewimport Base
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as F
39def state_seg(+live: Bool) -> F.Seg:
40 match live:
41 case True{}:
42 F.sg("● auto-switch LIVE", F.ROk{})
43 case False{}:
44 F.sg("○ auto-switch STOPPED", F.RWarn{})