Repos
C++
410 B14 lines Opens in site
Directory
Raw
Download
#pragma once
// Spec: INV-posts 6.2 (QuoteComposer environment value). `active` shows "Insert as quote" in the popover;
// `insert` receives "> <selected text>\n\n". Receivers: reply drafts append, comment edit keeps a pending quote.
#include <functional>
#include <string>
namespace dp {
struct QuoteComposer {
bool active = false;
std::function<void(const std::string&)> insert;
};
} // namespace dp