import { useBlockProps } from "@wordpress/block-editor"; import { InnerBlocks } from "@wordpress/block-editor"; export default function save({ attributes }) { const { hasCover, coverUrl, coverAlt, coverPosition } = attributes; return (
{hasCover && coverPosition === "left" && (
{hasCover && coverUrl && {coverAlt}}
)}
{hasCover && coverPosition === "right" && (
{hasCover && coverUrl && {coverAlt}}
)}
); }