import{s as m}from"./chunk-LvLJmgfZ.js";import{n as p}from"./useEvent-WUlsM6MC.js";import{T as d,_t as f,f as u}from"./cells-CCtxWKxf.js";import{t as c}from"./compiler-runtime-B3qBwwSJ.js";import{t as C}from"./jsx-runtime-CP2fAiZX.js";import{t as h}from"./use-toast-BhMe50aT.js";import{r as v}from"./useDeleteCell-BAfiIxKf.js";var x=c(),b=m(C(),1);function j(){let t=(0,x.c)(3),{splitCell:i,undoSplitCell:r}=d(),o;return t[0]!==i||t[1]!==r?(o=s=>{let l=u(s.cellId);if(!l)return;let a=f(l);i(s);let{dismiss:n}=h({title:"Cell split",action:(0,b.jsx)(v,{"data-testid":"undo-split-button",size:"sm",variant:"outline",onClick:()=>{r({...s,snapshot:a}),e()},children:"Undo"})}),e=n},t[0]=i,t[1]=r,t[2]=o):o=t[2],p(o)}export{j as t};
