import React from 'react'; import cn from 'classnames'; import { Icon } from 'UI'; interface Props { wrapperClassName?: string; className?: string; icon?: string; leadingButton?: React.ReactNode; type?: string; rows?: number; [x: string]: any; } function Input(props: Props) { const { className = '', leadingButton = '', wrapperClassName = '', icon = '', type = 'text', rows = 4, ...rest } = props; return (
{icon && } {type === 'textarea' ? (