import React, { FC, HTMLInputTypeAttribute, ReactElement } from "react" const Field: FC = ({children, type = 'text', className = '', classNameForm = '', ...props}) => { return {children && {children} } } export default Field interface FieldProps { children?: ReactElement|string, type?: HTMLInputTypeAttribute, name: string, id?: string, value: string|number|undefined, placeholder?: string, autoFocus?: boolean, className?: string, classNameForm?: string, step?: string, onChange: (event: React.ChangeEvent) => void, } export const TextArea: FC = ({children, name, value, className = '', classNameForm = '', ...props}) => { return {children && {children} } {value} } interface TextAreaProps { children?: ReactElement|string, id?: string, name: string, value: string|undefined, className?: string, classNameForm?: string, onChange: (event: React.ChangeEvent) => void, }