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

export default function save({ attributes }) {
	const { align, link, text } = attributes;
	return (
		<a
			href={link?.url}
			{...useBlockProps.save({
				className: `align--${align}`,
			})}
		>
			{text}
		</a>
	);
}
