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

export default function save({ attributes }) {
	const { year } = attributes;
	return (
		<div
			{...useBlockProps.save({
				className: `story-timeline-step`,
				id: `year-${year}`,
			})}
		>
			<p className="story-timeline-step__year">{year}</p>
			<div className="story-timeline-step__innerblocks">
				<InnerBlocks.Content />
			</div>
		</div>
	);
}
