import data from '../../utils/data'; import TitleBadge, {TITLE_BADGE_INFO} from "./TitleBadge"; import {__} from "@wordpress/i18n"; const BadgeBox = ( props ) => { const titleTag = props.titleTag ?? 'h3'; const TitleTag = titleTag; return (
{props.title} {props.imageBadge && ( {props.imageBadge.map((badge) => data().getImage(badge))} )} {props.textBadge && ( )}
{props?.description && (

)}
); }; export default BadgeBox;