caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
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>
2026-11-13 04:18:46 +03:00

65 lines
1.5 KiB
TypeScript

import React from 'react';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import { Colors } from '../../constants/Colors';
interface EmptyStateProps {
title: string;
message?: string;
icon?: string;
actionLabel?: string;
onAction?: () => void;
}
export default function EmptyState({ title, message, icon, actionLabel, onAction }: EmptyStateProps) {
return (
<View style={styles.container}>
{icon && <Text style={styles.icon}>{icon}</Text>}
<Text style={styles.title}>{title}</Text>
{message && <Text style={styles.message}>{message}</Text>}
{actionLabel && onAction && (
<TouchableOpacity style={styles.actionButton} onPress={onAction}>
<Text style={styles.actionLabel}>{actionLabel}</Text>
</TouchableOpacity>
)}
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 40,
},
icon: {
fontSize: 64,
marginBottom: 16,
},
title: {
fontSize: 20,
fontWeight: '600',
color: Colors.text,
marginBottom: 8,
textAlign: 'center',
},
message: {
fontSize: 14,
color: Colors.textSecondary,
textAlign: 'center',
},
actionButton: {
marginTop: 16,
paddingHorizontal: 24,
paddingVertical: 12,
backgroundColor: Colors.buttonPrimary,
borderRadius: 6,
},
actionLabel: {
color: Colors.text,
fontSize: 14,
fontWeight: '600',
},
});