import React, { ReactElement } from 'react' import styled from 'styled-components' import { MediaQuery } from "../../common/helpers/MediaQuery" import { CustomComponent } from "../../core" /* import { CustomIcon } from "../CustomIcon" */ import { Div } from "../../core/Div" import { Paragraph } from "../../core/Paragraph" import { Label } from "../../core/Label" import { TextArea, TextAreaBaseInterface } from "../../core/TextArea" interface FormTextAreaBaseInterface extends TextAreaBaseInterface { icon?: string name?: string } const FormTextAreaBase: React.FunctionComponent = (props): ReactElement => { const { icon, label, isValid, placeholder, warning, onChange, onKeyPress, maxLength, name, touched, value } = props const newProps = Object.assign({}, {...props}) delete newProps.children delete newProps.themed delete newProps.isValid delete newProps.touched delete newProps.maxLength delete newProps.value delete newProps.onKeyPress delete newProps.onChange return (