about summary refs log tree commit diff
path: root/src/view/screens/CustomAlgorithms.tsx
diff options
context:
space:
mode:
authorAnsh Nanda <anshnanda10@gmail.com>2023-05-12 14:40:58 -0700
committerAnsh Nanda <anshnanda10@gmail.com>2023-05-12 14:40:58 -0700
commit370d52bd1f4ba3b5effb7a48cd1c8b14aea88781 (patch)
tree7dfe2538000b96e562a079f10f5894a883195cf3 /src/view/screens/CustomAlgorithms.tsx
parent678f75b4951d891bbc2651220fe99a2f040af88f (diff)
downloadvoidsky-370d52bd1f4ba3b5effb7a48cd1c8b14aea88781.tar.zst
add custom algorithm screen to settings under moderation
Diffstat (limited to 'src/view/screens/CustomAlgorithms.tsx')
-rw-r--r--src/view/screens/CustomAlgorithms.tsx27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/view/screens/CustomAlgorithms.tsx b/src/view/screens/CustomAlgorithms.tsx
new file mode 100644
index 000000000..3e2fa7e73
--- /dev/null
+++ b/src/view/screens/CustomAlgorithms.tsx
@@ -0,0 +1,27 @@
+import {NativeStackScreenProps} from '@react-navigation/native-stack'
+import {usePalette} from 'lib/hooks/usePalette'
+import {CommonNavigatorParams} from 'lib/routes/types'
+import {observer} from 'mobx-react-lite'
+import React from 'react'
+import {StyleSheet, View} from 'react-native'
+import {withAuthRequired} from 'view/com/auth/withAuthRequired'
+import {ViewHeader} from 'view/com/util/ViewHeader'
+import {Text} from 'view/com/util/text/Text'
+
+type Props = NativeStackScreenProps<CommonNavigatorParams, 'CustomAlgorithms'>
+
+const CustomAlgorithms = withAuthRequired(
+  observer((props: Props) => {
+    const pal = usePalette('default')
+    return (
+      <View>
+        <ViewHeader title="Custom Algorithms" showOnDesktop />
+        <Text>CustomAlgorithms</Text>
+      </View>
+    )
+  }),
+)
+
+export default CustomAlgorithms
+
+const styles = StyleSheet.create({})