"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../../_virtual/jsx-runtime.js"),d=require("./styles.js"),j=require("../../../IconButton/index.js"),m=require("../../../../icons/Close.js"),I=require("../../../../icons/Placeholder.js"),i=require("../../../../utils/index.js");function h({headerTitle:n,icon:u=e.jsxRuntimeExports.jsx(I.default,{}),hasPullTab:x=!1,pinnedHeader:l=!1,headerContentModifiers:t="empty",headerControlsModifiers:r="close",onClose:c,...a}){const s=i.getId(`${a["data-testid"]}-bottom-sheet-header`),p=i.getId(`${a["data-trackid"]}-bottom-sheet-header`),o=i.getId(`${a.id}`);return e.jsxRuntimeExports.jsx(d.HeaderWrapper,{hasPullTab:x,pinnedHeader:l,"data-testid":s("wrapper"),id:o("wrapper"),children:t==="empty"&&r==="default"?null:e.jsxRuntimeExports.jsxs(d.HeaderInnerWrapper,{headerContentModifiers:t,children:[e.jsxRuntimeExports.jsxs(d.IconTitleWrapper,{headerControlsModifiers:r,children:[t==="withIcon"&&u,t!=="empty"&&e.jsxRuntimeExports.jsx("h3",{"data-testid":s("title"),children:n})]}),r==="close"&&e.jsxRuntimeExports.jsx(j.IconButton,{size:"x-small",variant:"ghost-tertiary",icon:e.jsxRuntimeExports.jsx(m.default,{}),onClick:c,"data-testid":s("close-button"),"data-trackid":p("close-button")})]})})}exports.BottomSheetHeader=h;
