status-mobile/src/status_im/commands/subs.cljs

11 lines
270 B
Clojure

(ns status-im.commands.subs
(:require [re-frame.core :refer [reg-sub]]))
(reg-sub :get-commands-responses-by-access-scope :access-scope->commands-responses)
(reg-sub
:get-command
:<- [:get-contacts]
(fn [contacts [_ ref]]
(some->> ref (get-in contacts))))