"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../../_virtual/jsx-runtime.js"),o=require("../../../../utils/index.js"),c=require("../../../../icons/Close.js"),i=require("./styles.js"),j=require("../../../IconButton/index.js");const u=({imgValues:e={imgAlt:"",objectFit:"cover",objectPosition:"center",asHeader:!1,imgSrc:"",imgHeight:""},headerControlsModifiers:a,onClose:s,...r})=>{const n=o.getId(`${r["data-testid"]}-bottom-sheet-image`),d=o.getId(`${r["data-trackid"]}-bottom-sheet-image`);return e?t.jsxRuntimeExports.jsxs(i.ButtonSheetImageWrapper,{imgHeight:e.imgHeight,children:[t.jsxRuntimeExports.jsx(i.ImageStyled,{src:e.imgSrc,alt:e.imgAlt,objectFit:e.objectFit,objectPosition:e.objectPosition,asHeader:e.asHeader,loading:"lazy"}),a==="close"&&e.asHeader&&t.jsxRuntimeExports.jsx(j.IconButton,{size:"x-small",variant:"secondary",icon:t.jsxRuntimeExports.jsx(c.default,{}),onClick:s,"data-testid":n("close-button"),"data-trackid":d("close-button")})]}):null};exports.default=u;
