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 ( {label && ( {label} )} {error && ( {error} )} ); } 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, }, });