react-code-dataset
/
wp-calypso
/client
/components
/community-translator
/translatable-textarea.jsx
| import { FormLabel } from '@automattic/components'; | |
| import FormTextarea from 'calypso/components/forms/form-textarea'; | |
| const TranslatableTextarea = ( { | |
| originalString, | |
| title, | |
| fieldName, | |
| onChange, | |
| value, | |
| disabled, | |
| } ) => ( | |
| <FormLabel className="community-translator__string-container" htmlFor={ fieldName }> | |
| <span className="community-translator__string-description">{ title }</span> | |
| <span> | |
| <dfn>{ originalString }</dfn> | |
| <FormTextarea | |
| id={ fieldName } | |
| name={ fieldName } | |
| value={ value } | |
| disabled={ disabled } | |
| onChange={ onChange } | |
| /> | |
| </span> | |
| </FormLabel> | |
| ); | |
| export default TranslatableTextarea; | |