diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-12 14:40:58 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-12 14:40:58 -0700 |
commit | 370d52bd1f4ba3b5effb7a48cd1c8b14aea88781 (patch) | |
tree | 7dfe2538000b96e562a079f10f5894a883195cf3 /src/view/screens/CustomAlgorithms.tsx | |
parent | 678f75b4951d891bbc2651220fe99a2f040af88f (diff) | |
download | voidsky-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.tsx | 27 |
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({}) |