Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
53 lines
1.4 KiB
TypeScript
53 lines
1.4 KiB
TypeScript
import React, { useContext } from 'react';
|
|
import { StyleSheet, View } from 'react-native';
|
|
import { Modalize } from 'react-native-modalize';
|
|
import { AppContext } from '@app/context';
|
|
import { BottomSheetHeader, Option } from '@app/layout';
|
|
import { ThemeStatic } from '@app/theme';
|
|
import { ThemeColors } from '@app/types/theme';
|
|
|
|
interface ProfileOptionsBottomSheetProps {
|
|
ref: React.Ref<any>,
|
|
onBlockUser: () => void
|
|
};
|
|
|
|
const ProfileOptionsBottomSheet: React.FC<ProfileOptionsBottomSheetProps> = React.forwardRef(({ onBlockUser }, ref) => {
|
|
|
|
const { theme } = useContext(AppContext);
|
|
|
|
return (
|
|
<Modalize
|
|
//@ts-ignore
|
|
ref={ref}
|
|
scrollViewProps={{ showsVerticalScrollIndicator: false }}
|
|
modalStyle={styles(theme).container}
|
|
adjustToContentHeight>
|
|
<BottomSheetHeader
|
|
heading='Options'
|
|
subHeading='Tell us what you think'
|
|
/>
|
|
<View style={styles().content}>
|
|
<Option
|
|
label='Block'
|
|
iconName='ios-close-circle'
|
|
color={ThemeStatic.delete}
|
|
onPress={onBlockUser}
|
|
/>
|
|
</View>
|
|
</Modalize >
|
|
);
|
|
});
|
|
|
|
const styles = (theme = {} as ThemeColors) => StyleSheet.create({
|
|
container: {
|
|
padding: 20,
|
|
backgroundColor: theme.base
|
|
},
|
|
content: {
|
|
flex: 1,
|
|
paddingTop: 20,
|
|
paddingBottom: 16
|
|
}
|
|
});
|
|
|
|
export default ProfileOptionsBottomSheet; |