mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
1import React from 'react'
2import {View} from 'react-native'
3import {msg, Trans} from '@lingui/macro'
4import {useLingui} from '@lingui/react'
5import {useFocusEffect} from '@react-navigation/native'
6
7import {usePalette} from '#/lib/hooks/usePalette'
8import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types'
9import {s} from '#/lib/styles'
10import {useSetMinimalShellMode} from '#/state/shell'
11import {TextLink} from '#/view/com/util/Link'
12import {Text} from '#/view/com/util/text/Text'
13import {ScrollView} from '#/view/com/util/Views'
14import * as Layout from '#/components/Layout'
15import {ViewHeader} from '../com/util/ViewHeader'
16
17type Props = NativeStackScreenProps<CommonNavigatorParams, 'TermsOfService'>
18export const TermsOfServiceScreen = (_props: Props) => {
19 const pal = usePalette('default')
20 const setMinimalShellMode = useSetMinimalShellMode()
21 const {_} = useLingui()
22
23 useFocusEffect(
24 React.useCallback(() => {
25 setMinimalShellMode(false)
26 }, [setMinimalShellMode]),
27 )
28
29 return (
30 <Layout.Screen>
31 <ViewHeader title={_(msg`Terms of Service`)} />
32 <ScrollView style={[s.hContentRegion, pal.view]}>
33 <View style={[s.p20]}>
34 <Text style={pal.text}>
35 <Trans>The Terms of Service have been moved to</Trans>{' '}
36 <TextLink
37 style={pal.link}
38 href="https://bsky.social/about/support/tos"
39 text="bsky.social/about/support/tos"
40 />
41 </Text>
42 </View>
43 <View style={s.footerSpacer} />
44 </ScrollView>
45 </Layout.Screen>
46 )
47}