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