import * as React from 'react'; import styles from './styles.module.scss'; interface ITextInputProps { type?: 'text' | 'password'; placeholder?: string; label?: string; value?: string; onChange: React.ChangeEventHandler; } export const TextInput: React.FunctionComponent = ({ type = 'text', placeholder = '', label, onChange = () => {}, value = '', }) => (
{ label &&
{label}
}
);