diff options
author | Eric Bailey <git@esb.lol> | 2024-05-17 18:05:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-17 16:05:21 -0700 |
commit | 49314e2d1f20d7471f1d05ce2b118bd030c44aa2 (patch) | |
tree | 01a7db1360ac945debbbf2294c0b98709e9909c5 /src/screens/Messages/Conversation/ChatDisabled.tsx | |
parent | 8b3bfb3cf7459af59fb4535241a6251e35e88eb9 (diff) | |
download | voidsky-49314e2d1f20d7471f1d05ce2b118bd030c44aa2.tar.zst |
[🐴] Mod disabled (#4089)
* Handle send failures * Add chat disabled state
Diffstat (limited to 'src/screens/Messages/Conversation/ChatDisabled.tsx')
-rw-r--r-- | src/screens/Messages/Conversation/ChatDisabled.tsx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/screens/Messages/Conversation/ChatDisabled.tsx b/src/screens/Messages/Conversation/ChatDisabled.tsx new file mode 100644 index 000000000..e7453bfd8 --- /dev/null +++ b/src/screens/Messages/Conversation/ChatDisabled.tsx @@ -0,0 +1,26 @@ +import React from 'react' +import {View} from 'react-native' +import {Trans} from '@lingui/macro' + +import {atoms as a, useTheme} from '#/alf' +import {Text} from '#/components/Typography' + +export function ChatDisabled() { + const t = useTheme() + return ( + <View style={[a.p_md]}> + <View style={[a.p_xl, a.rounded_md, t.atoms.bg_contrast_25]}> + <Text + style={[a.text_md, a.font_bold, a.pb_sm, t.atoms.text_contrast_high]}> + <Trans>Your chats have been disabled</Trans> + </Text> + <Text style={[a.text_sm, a.leading_snug, t.atoms.text_contrast_medium]}> + <Trans> + Our moderators have reviewed reports and decided to disable your + access to chats on Bluesky. + </Trans> + </Text> + </View> + </View> + ) +} |