import PropTypes from 'prop-types'; import { __ } from '@wordpress/i18n'; const { Component } = wp.element; const { TextareaControl } = wp.components; class TextareaComponent extends Component { constructor(props) { super( props ); let value = props.control.setting.get(); this.state = { value }; this.defaultValue = props.control.params.default || ''; this.updateValues = this.updateValues.bind( this ); } render() { return (