about summary refs log tree commit diff
path: root/src/screens/Messages/Settings/index.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-04-27 05:54:18 +0100
committerGitHub <noreply@github.com>2024-04-27 05:54:18 +0100
commitce85375c856549371e1e561e21bb5932baca8ea6 (patch)
tree7938f91a11ff2d2459707ac19f09774f30857150 /src/screens/Messages/Settings/index.tsx
parent1af59ca8a7db308325f8964a131d544882cff6e8 (diff)
downloadvoidsky-ce85375c856549371e1e561e21bb5932baca8ea6.tar.zst
[Clipclops] New routes with placeholder screens (#3725)
* add new routes with placeholder screens

* gate content

* add filled envelope style

* swap filled state

* switch to `useAgent`
Diffstat (limited to 'src/screens/Messages/Settings/index.tsx')
-rw-r--r--src/screens/Messages/Settings/index.tsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/screens/Messages/Settings/index.tsx b/src/screens/Messages/Settings/index.tsx
new file mode 100644
index 000000000..bd093c792
--- /dev/null
+++ b/src/screens/Messages/Settings/index.tsx
@@ -0,0 +1,24 @@
+import React from 'react'
+import {View} from 'react-native'
+import {msg} from '@lingui/macro'
+import {useLingui} from '@lingui/react'
+import {NativeStackScreenProps} from '@react-navigation/native-stack'
+
+import {CommonNavigatorParams} from '#/lib/routes/types'
+import {useGate} from '#/lib/statsig/statsig'
+import {ViewHeader} from '#/view/com/util/ViewHeader'
+import {ClipClopGate} from '../gate'
+
+type Props = NativeStackScreenProps<CommonNavigatorParams, 'MessagesSettings'>
+export function MessagesSettingsScreen({}: Props) {
+  const {_} = useLingui()
+
+  const gate = useGate()
+  if (!gate('dms')) return <ClipClopGate />
+
+  return (
+    <View>
+      <ViewHeader title={_(msg`Settings`)} showOnDesktop />
+    </View>
+  )
+}