11import { Atoms , Breakpoints , typography , useTheme } from '@/src/common/theme' ;
22import { isWeb } from '@/src/common/util/platform' ;
3+ import { Image } from 'expo-image' ;
34import { ExternalPathString , Link } from 'expo-router' ;
45import {
56 ComponentProps ,
67 memo ,
78 ReactElement ,
89 ReactNode ,
910 useCallback ,
10- useMemo ,
1111 useState ,
1212} from 'react' ;
1313import {
1414 KeyboardAvoidingView ,
15- Linking ,
1615 Platform ,
1716 Pressable ,
18- Text ,
1917 useWindowDimensions ,
2018 View ,
2119} from 'react-native' ;
22- import { Image } from 'expo-image' ;
2320import { useSafeAreaInsets } from 'react-native-safe-area-context' ;
2421
25- import WEB_LOGO from '../../assets/images/WebLogo.png' ;
2622import { VerticalNav } from './nav/VerticalNav' ;
23+ import { Button } from '../primitives' ;
24+ import { IdentityFooter } from '@/src/features/core/identity/IdentityFooter' ;
2725import { Ionicons } from '@expo/vector-icons' ;
26+ import WEB_LOGO from '../../assets/images/WebLogo.png' ;
2827import { FUTO_URL , openCompose } from '../../constants' ;
29- import { Button } from '../primitives' ;
3028import { useCurrentIdentity } from '../../lib/polycentric-hooks' ;
31- import { IdentityFooter } from '@/src/features/core/identity/IdentityFooter' ;
3229
3330type MainProps = {
3431 children : ReactElement | ReactElement [ ] ;
@@ -63,7 +60,7 @@ function Main({ children, style }: MainProps) {
6360 < View
6461 style = { [
6562 Atoms . flex_1 ,
66- Atoms . flex_row ,
63+ showRightSidebar && Atoms . flex_row ,
6764 Atoms . justify_between ,
6865 { width : innerWidth } ,
6966 ] }
@@ -257,7 +254,7 @@ export const RightSidebar = memo(function RightSidebar({
257254 setActiveThemeName ( next ) ;
258255 } , [ setActiveThemeName , theme . name ] ) ;
259256
260- const LINKS : { text : ReactNode ; href : ExternalPathString } [ ] = [
257+ const LINKS : { text : string ; href : ExternalPathString } [ ] = [
261258 {
262259 text : 'Privacy Policy' ,
263260 href : 'https://docs.polycentric.io/privacy-policy/' ,
@@ -266,7 +263,7 @@ export const RightSidebar = memo(function RightSidebar({
266263 text : 'Source Code' ,
267264 href : 'https://gitlab.futo.org/polycentric/polycentric' ,
268265 } ,
269- { text : < Text > FUTO © 2026.</ Text > , href : FUTO_URL } ,
266+ { text : ' FUTO © 2026.' , href : FUTO_URL } ,
270267 ] ;
271268
272269 return (
0 commit comments