#pragma once // Spec: INV-posts 2.3 (replyDraft binding on AppSettingsStore.draftReplyMessage), FR-STORE-04. #include "store/SettingsStore.hpp" #include "ui/View.hpp" namespace dp { struct ReplyDraft { static ui::Binding binding() { return ui::Binding{[] { return SettingsStore::instance().draftReplyMessage(); }, [](const std::string& v) { SettingsStore::instance().setDraftReplyMessage(v); }}; } static void clear() { SettingsStore::instance().setDraftReplyMessage(""); } }; } // namespace dp