import { useBlockProps } from "@wordpress/block-editor"; import { __ } from "@wordpress/i18n"; import chevronDown from "./img/chevron_down.svg"; import { InnerBlocks } from "@wordpress/block-editor"; import getAdminLanguageFromCookies from "../../../utils/getAdminLanguageFromCookies.js"; export default function save({ attributes }) { const { coverUrl, coverId, coverAlt, focusBullets } = attributes; const renderedFocusPointBullets = focusBullets.map((focusBullet, index) => { return (
{index + 1}
); }); const currentLang = getAdminLanguageFromCookies("wp-wpml_current_language"); const localVersionTextDescription = currentLang === "nl" ? "Tekstversie van de instructies in de afbeelding" : "Version texte des indications de l'illustration"; return (
{coverUrl && (
{coverAlt} {renderedFocusPointBullets}
)}
); }