about summary refs log tree commit diff
path: root/src/components/dms/ReportConversationPrompt.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-05-20 13:49:20 -0500
committerGitHub <noreply@github.com>2024-05-20 13:49:20 -0500
commitd0bfe703d9882c82a9ca167170a716625945ca63 (patch)
tree9336251532c481c3c74fe71f1ee706a16ecff9c7 /src/components/dms/ReportConversationPrompt.tsx
parentcc7a0da1a2fb9f0f69605f71a7db81204d636ea3 (diff)
downloadvoidsky-d0bfe703d9882c82a9ca167170a716625945ca63.tar.zst
[🐴] Switch back to encouraging users to report messages (#4117)
* Swap prompt back in

* Remove unused convoAccount affordances
Diffstat (limited to 'src/components/dms/ReportConversationPrompt.tsx')
-rw-r--r--src/components/dms/ReportConversationPrompt.tsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/components/dms/ReportConversationPrompt.tsx b/src/components/dms/ReportConversationPrompt.tsx
new file mode 100644
index 000000000..610cfbcf9
--- /dev/null
+++ b/src/components/dms/ReportConversationPrompt.tsx
@@ -0,0 +1,27 @@
+import React from 'react'
+import {msg} from '@lingui/macro'
+import {useLingui} from '@lingui/react'
+
+import {DialogControlProps} from '#/components/Dialog'
+import * as Prompt from '#/components/Prompt'
+
+export function ReportConversationPrompt({
+  control,
+}: {
+  control: DialogControlProps
+}) {
+  const {_} = useLingui()
+
+  return (
+    <Prompt.Basic
+      control={control}
+      title={_(msg`Report conversation`)}
+      description={_(
+        msg`To report a conversation, please report one of its messages via the conversation screen. This lets our moderators understand the context of your issue.`,
+      )}
+      confirmButtonCta={_(msg`I understand`)}
+      onConfirm={() => {}}
+      showCancel={false}
+    />
+  )
+}