View.state_seg: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/tui/view.bend as View Lines 39-44 of cswap-bend-cli@0.1.0.0/tui/view.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/tui/view.bend&start_line=39&end_line=44 import Base import cswap-bend-cli@0.1.0.0/tui/fmt.bend as F def state_seg(+live: Bool) -> F.Seg: match live: case True{}: F.sg("● auto-switch LIVE", F.ROk{}) case False{}: F.sg("○ auto-switch STOPPED", F.RWarn{}) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/tui/fmt.bend&name=Role https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/tui/fmt.bend&name=Seg https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/tui/fmt.bend&name=sg