import { View, Text, TextInput, type TextInputProps, type ViewStyle } from "react-native"; import { useTheme } from "../theme"; interface InputProps extends TextInputProps { error?: string; label?: string; containerStyle?: ViewStyle; } export function Input({ error, label, containerStyle, style, ...props }: InputProps) { const theme = useTheme(); return ( {label && ( {label} )} {error && ( {error} )} ); }