#include "screens/create/CreatePostScreen.hpp" #include "api/DevPlaceError.hpp" #include "core/Log.hpp" #include "core/TextCount.hpp" #include "screens/AppContext.hpp" #include "screens/components/AccessibleLabel.hpp" #include "screens/components/AlertPresenter.hpp" #include "screens/components/Box.hpp" #include "screens/components/DevPlaceTextEditor.hpp" #include "spec/ComposeSpec.hpp" #include "spec/ModelLimits.hpp" #include "store/AppState.hpp" #include "store/SettingsStore.hpp" #include "ui/Controls.hpp" #include "ui/Overlays.hpp" #include "ui/Palette.hpp" namespace dp { using namespace ui; using spec::ComposeSpec; using spec::ModelLimits; namespace { std::string trimmed(const std::string& s) { std::size_t a = 0, b = s.size(); while (a < b && std::isspace(static_cast(s[a]))) ++a; while (b > a && std::isspace(static_cast(s[b - 1]))) --b; return s.substr(a, b - a); } struct PickerEntry { std::string title; bool checked; std::function action; }; // "