import React from "react";
import { StyleSheet, TextInput, TextInputProps } from "react-native";
import { COLORS, BORDER_RADIUS } from "@/constants/theme";

export function Input({ ...rest }: TextInputProps) {
  return (
    <TextInput
      style={styles.input}
      placeholderTextColor={COLORS.inputPlaceholder}
      {...rest}
    />
  );
}

const styles = StyleSheet.create({
  input: {
    width: "100%",
    height: 48,
    borderWidth: 1,
    borderColor: COLORS.inputBorder,
    backgroundColor: COLORS.inputBackground,
    borderRadius: BORDER_RADIUS.md,
    color: COLORS.inputText,
    fontSize: 16,
    paddingLeft: 12,
  },
});
