import e from"react";import t from"classnames";import s from"../../IconButton/IconButton.js";import{CloseSmall as a}from"@vibe/icons";import{Icon as o}from"@vibe/icon/mockedClassNames";import{NOOP as i}from"../../../utils/function-utils.js";import{getTestId as m}from"../../../tests/testIds.js";import{ComponentDefaultTestId as r}from"../../../tests/constants.js";import c from"../../Text/Text.js";import n from"../../Heading/Heading.js";import{Flex as l}from"@vibe/layout/mockedClassNames";import d from"./LegacyModalHeader.module.scss.js";var p=function(p){var f=p.title,u=p.children,v=p.titleClassName,N=p.description,E=void 0===N?"":N,g=p.descriptionClassName,j=p.icon,x=p.closeModal,y=void 0===x?i:x,b=p.iconSize,C=void 0===b?24:b,L=p.iconClassName,k=p.closeButtonAriaLabel,H=void 0===k?"close":k,B=p.id,M=p["data-testid"];return e.createElement("div",{className:t(d.container,p.className),"data-testid":M||m(r.MODAL_HEADER,B)},u||e.createElement(l,{align:"start",gap:"small",className:v},j&&e.createElement(o,{className:t(d.icon,L),icon:j,iconType:"svg",iconSize:C,ignoreFocusStyle:!0}),e.createElement(n,{id:B,maxLines:2},f)),E&&e.createElement(c,{type:"text2",maxLines:2,className:t(d.description,g)},E),e.createElement("div",{className:t(d.closeButton)},e.createElement(s,{key:"xxs",onClick:y,ariaLabel:H,icon:a,kind:"tertiary",size:"small"})))};Object.assign(p,{displayName:"ModalHeader"});export{p as default};
//# sourceMappingURL=LegacyModalHeader.js.map
