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

export default function save({ attributes }) {
	const { textContent } = attributes;
	return (
		<>
			<aside
				{...useBlockProps.save({
					className: `homegrade-blocks-aside`,
				})}
			>
				<RichText.Content
					value={textContent}
					tagName="p"
					className="aside-content"
				/>
			</aside>
		</>
	);
}
