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>
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { TouchableOpacity, View } from 'react-native';
|
|
import { useRouter } from 'expo-router';
|
|
import { ThemedView } from '../../components/ui/ThemedView';
|
|
import { ThemedText } from '../../components/ui/ThemedText';
|
|
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
import { Colors } from '../../constants/Colors';
|
|
|
|
export default function Header({ title, showBack = true, rightAction, onRightPress }: any) {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<ThemedView style={{
|
|
flexDirection: 'row',
|
|
alignItems: 'center',
|
|
justifyContent: 'space-between',
|
|
paddingHorizontal: 16,
|
|
paddingVertical: 12,
|
|
borderBottomWidth: 1,
|
|
borderBottomColor: Colors.border,
|
|
}}>
|
|
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 16 }}>
|
|
{showBack && (
|
|
<TouchableOpacity onPress={() => router.back()}>
|
|
<Icon name="arrow-back" size={24} color={Colors.text} />
|
|
</TouchableOpacity>
|
|
)}
|
|
<ThemedText type="subtitle">{title}</ThemedText>
|
|
</View>
|
|
|
|
{rightAction && (
|
|
<TouchableOpacity onPress={onRightPress}>
|
|
{rightAction}
|
|
</TouchableOpacity>
|
|
)}
|
|
</ThemedView>
|
|
);
|
|
}
|