import { useBlockProps, InnerBlocks } from "@wordpress/block-editor";

export default function save({ attributes }) {
	const { interviewedPersonName, interviewName } = attributes;

	return (
		<section
			{...useBlockProps.save()}
			data-interviewed-person-name={interviewedPersonName}
		>
			<InnerBlocks.Content />
			<p className="infos-interview">
				<span className="infos-interview__label">interview</span>
				{interviewName}
			</p>
		</section>
	);
}
