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

export default function save({ attributes }) {
	const { hierarchy } = attributes;
	return (
		<div
			{...useBlockProps.save({
				className: `carhop-heading carhop-heading--hierarchy-${hierarchy}`,
			})}
		>
			<div className="carhop-heading__innerblocks">
				<InnerBlocks.Content />
			</div>
		</div>
	);
}
