Skip to content
Repos

DevPlaceApp

C++ 697 B20 lines Opens in site

Directory Raw Download

#pragma once
// Spec: FR-CLI-02 (screen id attachment-viewer), INV-social 17. Harness screen: the mock post attachments rendered with
// AttachmentViews (image tiles open the fullscreen viewer, video tiles open the URL externally).
#include "model/Attachment.hpp"
#include "ui/Navigation.hpp"

namespace dp {

class AttachmentGalleryScreen : public ui::Screen {
 public:
  explicit AttachmentGalleryScreen(std::vector<Attachment> attachments) : attachments_(std::move(attachments)) {}
  ui::ViewPtr body() override;
  std::string title() const override;
  TitleMode titleMode() const override { return TitleMode::Inline; }

 private:
  std::vector<Attachment> attachments_;
};

}  // namespace dp
32.8ms