"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("../../../_virtual/jsx-runtime.js"),l=require("../../../icons/Close.js"),s=require("../styles.js"),x=require("../../IconButton/index.js");function j({className:o,children:n,onClose:u,hideCloseIcon:i,mode:c,variant:a,...r}){const e=r["data-testid"],d=r["data-trackid"];return t.jsxRuntimeExports.jsxs(s.StyledModalHeader,{className:o,"data-testid":e||void 0,"data-trackingid":d||void 0,variant:a,children:[t.jsxRuntimeExports.jsx(s.ModalTitle,{mode:c,hideCloseIcon:i,variant:a,children:n}),!i&&t.jsxRuntimeExports.jsx(x.IconButton,{variant:"ghost",size:"medium",icon:t.jsxRuntimeExports.jsx(l.default,{}),onClick:u,"data-testid":e?`${e}-close-button`:void 0,"data-trackingid":d?`${d}-close-button`:void 0})]})}exports.ModalHeader=j;
