Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/components/undo/Undo",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../contexts/StoreContext","./UndoHistory"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({onRedo:e=(()=>{}),onUndo:t=(()=>{})}){const n=(0,o.useSelector)((e=>e.undoHistory)),u=(0,o.useSelector)((e=>e.redoHistory));return r.default.createElement(r.default.Fragment,null,r.default.createElement(a.default.Group,{className:"flex-nowrap"},r.default.createElement(a.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("undo"),className:"btn-monospaced",disabled:!n||!n.length,displayType:"secondary",onClick:t,small:!0,symbol:"undo",title:Liferay.Language.get("undo")}),r.default.createElement(a.ClayButtonWithIcon,{"aria-label":Liferay.Language.get("redo"),className:"btn-monospaced",disabled:!u||!u.length,displayType:"secondary",onClick:e,small:!0,symbol:"redo",title:Liferay.Language.get("redo")})),r.default.createElement("span",{className:"d-none d-sm-block"},r.default.createElement(l.default,null)))};var a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(n,r,o):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n("@frontend-taglib-clay$clayui/button")),r=(u(n("liferay!frontend-js-react-web$prop-types")),u(n("liferay!frontend-js-react-web$react"))),o=n("../../contexts/StoreContext"),l=u(n("./UndoHistory"));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}}}));
//# sourceMappingURL=Undo.js.map