forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
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 {
9 type CommonNavigatorParams,
10 type NativeStackScreenProps,
11} from '#/lib/routes/types'
12import {s} from '#/lib/styles'
13import {useSetMinimalShellMode} from '#/state/shell'
14import {TextLink} from '#/view/com/util/Link'
15import {Text} from '#/view/com/util/text/Text'
16import {ScrollView} from '#/view/com/util/Views'
17import * as Layout from '#/components/Layout'
18import {ViewHeader} from '../com/util/ViewHeader'
19
20type Props = NativeStackScreenProps<CommonNavigatorParams, 'CopyrightPolicy'>
21export const CopyrightPolicyScreen = (_props: Props) => {
22 const pal = usePalette('default')
23 const {_} = useLingui()
24 const setMinimalShellMode = useSetMinimalShellMode()
25
26 useFocusEffect(
27 React.useCallback(() => {
28 setMinimalShellMode(false)
29 }, [setMinimalShellMode]),
30 )
31
32 return (
33 <Layout.Screen>
34 <ViewHeader title={_(msg`Copyright Policy`)} />
35 <ScrollView style={[s.hContentRegion, pal.view]}>
36 <View style={[s.p20]}>
37 <Text style={pal.text}>
38 <Trans>
39 The Copyright Policy has been moved to{' '}
40 <TextLink
41 style={pal.link}
42 href="https://bsky.social/about/support/copyright"
43 text="bsky.social/about/support/copyright"
44 />
45 </Trans>
46 </Text>
47 </View>
48 <View style={s.footerSpacer} />
49 </ScrollView>
50 </Layout.Screen>
51 )
52}