import { Text } from '..'; import { Upload } from '../../assets'; import { Wrapper } from './styles'; type InputProps = { className?: string; color?: | 'client' | 'productOwner' | 'developer' | 'admin' | 'success' | 'warning' | 'error' | 'black' | 'white'; error?: boolean; errorMessage?: string; value: string; label?: string; name: string; type?: 'text' | 'email' | 'password' | 'file' | 'number'; placeholder?: string; fullWidth?: boolean; onChange: (event: React.ChangeEvent) => void; }; const Input = ({ type = 'text', color = 'client', label, name, placeholder, value, onChange, error, errorMessage, ...props }: InputProps) => { return (
{label && ( {label} )} {error && errorMessage && ( {errorMessage} )}
{type === 'file' && ( )}
); }; export default Input;