import{j as e,d_ as l,d$ as c}from"./react-vendor-xYZnmIII.js";import{a7 as s,a8 as i,B as o,a9 as r}from"./ui-components-CQM92IK3.js";import{useEditor as x}from"./use-editor-CiTCcx1l.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";import"./editor-provider-0C4WlrME.js";import"./v4-DsPse6Vr.js";const N=()=>{const{editor:t,dispatch:n}=x(),d=()=>{n({type:"UNDO"})},a=()=>{n({type:"REDO"})};return e.jsxs(e.Fragment,{children:[e.jsxs(s,{children:[e.jsx(i,{asChild:!0,children:e.jsx(o,{disabled:!(t.history.currentIndex>0),onClick:d,variant:"outline",size:"icon",children:e.jsx(l,{className:"h-5 w-5","aria-label":"Undo"})})}),e.jsx(r,{children:e.jsxs("p",{className:"inline-flex items-center gap-2",children:["Undo"," ",e.jsxs("kbd",{className:"pointer-events-none inline-flex h-5 items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100 select-none",children:[e.jsx("div",{className:"text-xs",children:"⌘"}),"Z"]})]})})]}),e.jsxs(s,{children:[e.jsx(i,{asChild:!0,children:e.jsx(o,{disabled:!(t.history.currentIndex<t.history.history.length-1),onClick:a,variant:"outline",size:"icon",children:e.jsx(c,{className:"h-5 w-5","aria-label":"Redo"})})}),e.jsx(r,{children:e.jsxs("p",{className:"inline-flex items-center gap-2",children:["Redo"," ",e.jsxs("kbd",{className:"pointer-events-none inline-flex h-5 items-center gap-1 rounded border bg-muted px-1.5 font-mono text-[10px] font-medium text-muted-foreground opacity-100 select-none",children:[e.jsx("div",{className:"text-xs",children:"⌘"}),"Y"]})]})})]})]})};export{N as default};
