# image-optimization/1.7.4/modules/reviews/assets/src/components/feedback-form.js

Image Optimizer – Compress Images and Convert to WebP or AVIF, version 1.7.4. 40 lines.

- Page: https://pluginprobe.com/plugins/image-optimization/1.7.4/code/modules/reviews/assets/src/components/feedback-form.js
- Raw: https://pluginprobe.com/plugins/image-optimization/1.7.4/raw/modules/reviews/assets/src/components/feedback-form.js
- Modified: 2026-01-20T08:04:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/image-optimization/1.7.4/code/modules/reviews/assets/src/components/feedback-form.js#L10-L20`.

```javascript
import { styled } from '@elementor/ui/styles';
import Button from '@elementor/ui/Button';
import FormControl from '@elementor/ui/FormControl';
import TextField from '@elementor/ui/TextField';
import { __ } from '@wordpress/i18n';
import { useSettings } from '../hooks/use-settings';

const FeedbackForm = ( { close, handleSubmitForm } ) => {
	const { feedback, setFeedback } = useSettings();

	return (
		<FormControl fullWidth>
			<StyledTextField
				value={ feedback }
				onChange={ ( e ) => setFeedback( e.target.value ) }
				placeholder={ __( 'Share your thoughts on how we can improve Image Optimizer…', 'image-optimization' ) }
				minRows={ 5 }
				multiline />
			<Button
				color="primary"
				variant="contained"
				onClick={ () => handleSubmitForm( close ) }
			>
				{ __( 'Submit', 'image-optimization' ) }
			</Button>
		</FormControl>
	);
};

export default FeedbackForm;

const StyledTextField = styled( TextField )`
	textarea:focus-visible,
	textarea:active {
		outline: none;
		box-shadow: none;
	}
`;


```
