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

62 lines
1.3 KiB
TypeScript

import React from 'react';
import { TextInput, TextInputProps, StyleSheet, View } from 'react-native';
import { Colors } from '../../constants/Colors';
import { ThemedText } from './ThemedText';
interface InputProps extends TextInputProps {
label?: string;
error?: string;
}
export function Input({ label, error, style, ...props }: InputProps) {
return (
<View style={styles.container}>
{label && (
<ThemedText style={styles.label}>{label}</ThemedText>
)}
<TextInput
style={[
styles.input,
error ? styles.inputError : undefined,
style
]}
placeholderTextColor={Colors.textSecondary}
{...props}
/>
{error && (
<ThemedText style={styles.errorText}>{error}</ThemedText>
)}
</View>
);
}
const styles = StyleSheet.create({
container: {
marginBottom: 16,
},
label: {
marginBottom: 8,
fontSize: 14,
fontWeight: '500',
color: Colors.text,
},
input: {
backgroundColor: Colors.surface,
borderWidth: 1,
borderColor: Colors.border,
borderRadius: 8,
padding: 12,
color: Colors.text,
fontSize: 16,
},
inputError: {
borderColor: Colors.error,
},
errorText: {
marginTop: 4,
fontSize: 12,
color: Colors.error,
},
});