def state_seg

cswap-bend-cli@0.1.0.0 · tui/view.bend:39

import cswap-bend-cli@0.1.0.0/tui/view.bend as View
import 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{})

Uses (4)

Used by (1)