import { __ } from "@wordpress/i18n";
import { useBlockProps, RichText } from "@wordpress/block-editor";
import "./editor.scss";

export default function Edit({ attributes, setAttributes }) {
	const { content } = attributes;

	return (
		<p {...useBlockProps()}>
			<RichText
				placeholder={__("Entrez votre question", "interview-question")}
				value={content}
				onChange={(value) => setAttributes({ content: value })}
			/>
		</p>
	);
}
