'use client';
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var jsxRuntime=require("react/jsx-runtime"),core=require("@gem-sdk/core"),Image=require("../../image/components/Image.js"),React=require("react");const ArticleImage=({className:e,setting:t={},styles:r={},advanced:s,builderProps:a})=>{let i=core.useArticleStore(e=>e.article),c=React.useMemo(()=>{let{src:e,alt:t}=i?.media??{};return{src:e,alt:t}},[i]);return jsxRuntime.jsx("div",{className:core.cls("gp-text-center",e),style:{borderRadius:"inherit"},children:jsxRuntime.jsx(Image.default,{builderProps:a,setting:{...t,image:c,disableNoDataState:!0},styles:r,advanced:s})})};exports.default=ArticleImage;
