import TextArea from './TextArea'; import WindowFloat from './WindowFloat' import Bold from './Bold'; import { CSSProperties } from 'react'; export default (props: { value?: string, defaultValue?: string, body?: string, maxlen?: number, title?: string, onclose?: () => void, width?: number | string, maxWidth?: number | string, title2?: any, small?: boolean, z?: number, style?: CSSProperties, onchange?: (string) => void, selectonclick?: boolean, on?: (string) => void, onrighticon?: () => void, onlefticon?:()=>void, explain?:string, }) => { var value = null if (typeof props.value != "undefined") { value = props.value.toString(); } if (typeof props.defaultValue != "undefined") { value = props.defaultValue.toString(); } if (typeof props.body != "undefined") { value = props.body.toString(); } var txt = value.toString(); let charsleft = (props.maxlen || 1000) - (value || "").length return { props.onclose ? props.onclose() : null }} maxWidth={props.maxWidth || props.width} z={props.z}>