def switched_msg
import cswap-bend-cli@0.1.0.0/swbase.bend as Swbaseimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
140def switched_msg(+sw: Bool, +to: Json.Json) -> String:
141 SBase.sel.s(sw, "Switched to ", "Already on ") ++ ref_text(to)