def with_cell
import cswap-bend-cli@0.1.0.0/view.bend as Viewimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
79def with_cell(j: Json.Json, m: Maybe<&2, Cell>) -> Json.Json:
80 match m:
81 case Some{Cell{cd, ck}}:
82 Json.set("clock", jstr(ck), Json.set("countdown", jstr(cd), j))
83 case None{}:
84 j