import * as _ from "lodash"; import * as React from "react"; export interface IInputProps { type: string; id: string; value?: string; placeholder?: string; required?: boolean; style?: object; subtext?: string; supertext?: string; onClick?: () => void; onChange?: (id: string, data: string | number) => void; innerRef?: React.RefObject } export const Input = ({ type, id, value, placeholder, required, subtext, supertext, onClick, onChange, style, innerRef}: IInputProps) => (
{ // @ts-ignore onChange && onChange(id, e.target.value); }} /> {!_.isEmpty(supertext) && {supertext}} {!_.isEmpty(subtext) && {subtext}}
)