import React from 'react' import Input from './Input' import { isEmpty } from 'lodash' export default function FormInputWith({ type, name, onChange, value, label, className, error, autoComplete, autoFocus, placeholder, disabled, readOnly, onKeyDownCapture, leftItem, rightItem, formClassName, max, min, }) { return (
{isEmpty(leftItem) === false && (
{leftItem}
)} {isEmpty(rightItem) === false && (
{rightItem}
)}
{error && (

{error}

)}
) }