import{jsxs as i,jsx as s}from"react/jsx-runtime";import e from"classnames";import o from"../IconButton/IconButton.js";import a from"../Icon/Icons/components/CloseSmall.js";import n from"../Icon/Icon.js";import{NOOP as c}from"../../utils/function-utils.js";import t from"./ModalHeader.module.scss.js";var l=function(l){var r=l.title,d=l.titleClassName,m=l.description,p=void 0===m?"":m,u=l.descriptionClassName,j=l.icon,v=l.closeModal,f=void 0===v?c:v,N=l.iconSize,b=void 0===N?24:N,g=l.iconClassName,h=l.hideCloseButton,I=l.closeButtonAriaLabel,C=void 0===I?"close":I,O=l.id;return i("div",Object.assign({className:e(t.container,l.className)},{children:[i("p",Object.assign({role:"heading","aria-level":1,id:O,className:e(d,t.title)},{children:[j&&s("span",Object.assign({className:e(t.icon,g)},{children:s(n,{icon:j,iconType:n.type.SVG,iconSize:b,ignoreFocusStyle:!0,clickable:!1})})),r]})),p&&s("div",Object.assign({className:e(u,t.description)},{children:p})),!h&&s("div",Object.assign({className:e(t.closeButton)},{children:s(o,{onClick:f,ariaLabel:C,icon:a,kind:o.kinds.TERTIARY,size:o.sizes.SMALL},"xxs")}))]}))};Object.assign(l,{displayName:"ModalHeader"});var r=l;export{r as default};
