def block_pick

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

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
import cswap-bend-cli@0.1.0.0/tui/model.bend as M
import cswap-bend-cli@0.1.0.0/tui/card.bend as C

133def block_pick(+active: Bool, +a: M.Acct, +v: M.View, +h: M.Hdr, +now: U32, +off: U32) -> List<&2, List<&2, F.Seg>>:
134  match active:
135    case True{}:
136      C.card(a, v, threshold_of(h), now, off)
137    case False{}:
138      [C.mini(a, now)]

Uses (10)

Used by (1)