#pragma once
// Spec: INV-social 14 (TypingIndicatorView): three pulsing dots in a bordered capsule.
#include <string>
#include "ui/Views.hpp"
namespace dp {
ui::ViewPtr TypingIndicatorView(const std::string& username);
// Opacity of dot `index` at `seconds` since the indicator appeared: easeInOut(0.6 s) repeating forever with
// autoreverse, delayed index * 0.2 s, between 0.3 and 1. Exposed for tests.
float typingDotOpacity(int index, double seconds);
} // namespace dp