about summary refs log tree commit diff
path: root/src/state/models/shell-ui.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/shell-ui.ts')
-rw-r--r--src/state/models/shell-ui.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/state/models/shell-ui.ts b/src/state/models/shell-ui.ts
index fa2e78d5b..d1f458546 100644
--- a/src/state/models/shell-ui.ts
+++ b/src/state/models/shell-ui.ts
@@ -51,6 +51,14 @@ export class ServerInputModal {
   }
 }
 
+export class ReportPostModal {
+  name = 'report-post'
+
+  constructor(public postUrl: string) {
+    makeAutoObservable(this)
+  }
+}
+
 interface LightboxModel {
   canSwipeLeft: boolean
   canSwipeRight: boolean
@@ -127,6 +135,7 @@ export class ShellUiModel {
     | EditProfileModal
     | CreateSceneModal
     | ServerInputModal
+    | ReportPostModal
     | undefined
   isLightboxActive = false
   activeLightbox:
@@ -154,7 +163,8 @@ export class ShellUiModel {
       | ConfirmModal
       | EditProfileModal
       | CreateSceneModal
-      | ServerInputModal,
+      | ServerInputModal
+      | ReportPostModal,
   ) {
     this.isModalActive = true
     this.activeModal = modal