Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.174/page_editor/common/components/SidebarPanelHeader",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$classnames","liferay!frontend-js-react-web$react","../../app/actions/index","../../app/contexts/StoreContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function SidebarPanelHeader({children:e,iconLeft:t=null,iconRight:a=null,showCloseButton:c=!0}){const d=(0,i.useDispatch)(),s=(0,i.useSelector)((e=>{var t;return null===(t=e.sidebar)||void 0===t?void 0:t.panelId}));return l.default.createElement("header",{className:(0,r.default)("align-items-center d-flex justify-content-between my-3 pl-3 pr-2 page-editor__sidebar__panel-header")},t,l.default.createElement("h2",{className:"flex-grow-1 mb-0 mr-1 text-3"},e),a,c&&l.default.createElement(n.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("close"),displayType:"unstyled",onClick:()=>{var e;d((0,o.switchSidebarPanel)({sidebarOpen:!1})),null===(e=document.querySelector('[data-panel-id="'.concat(s,'"]')))||void 0===e||e.focus()},size:"sm",symbol:"times",title:Liferay.Language.get("close")}))};var n=a("@frontend-taglib-clay$clayui/button"),r=_interopRequireDefault(a("liferay!frontend-js-react-web$classnames")),l=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),o=a("../../app/actions/index"),i=a("../../app/contexts/StoreContext");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=SidebarPanelHeader.js.map