19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
|
import FormInput from './FormInput';
|
||
|
import { IconLock } from './icons';
|
||
|
|
||
|
export default ({value, error, children, onInput, className}) => (
|
||
|
<FormInput
|
||
|
type="password"
|
||
|
name="password"
|
||
|
label="Password"
|
||
|
value={value}
|
||
|
error={error}
|
||
|
icon={IconLock}
|
||
|
placeholder="Password..."
|
||
|
required={true}
|
||
|
className={className}
|
||
|
onInput={onInput}>
|
||
|
{ children }
|
||
|
</FormInput>
|
||
|
);
|