"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[6093],{46093:(e,o,n)=>{n.r(o),n.d(o,{default:()=>i});var t=n(66204),l=n(29520),r=n(27513),a=n(62301),s=n(7146),c=n(35421);const i=({sessionToDelete:e,onClose:o,rootModel:n})=>{const[i,u]=(0,t.useState)();return t.createElement(c.Dialog,{open:!0,onClose:()=>o(!1),title:`Delete session "${e}"?`},t.createElement(l.Z,null,i?t.createElement(c.ErrorMessage,{error:i}):null,t.createElement(r.Z,null,"This action cannot be undone")),t.createElement(a.Z,null,t.createElement(s.Z,{onClick:()=>o(!1),color:"primary"},"Cancel"),t.createElement(s.Z,{onClick:()=>{(async()=>{try{n.removeSavedSession({name:e}),o(!0)}catch(e){console.error(e),u(e)}})()},color:"primary",variant:"contained",autoFocus:!0},"Delete")))}}}]);
//# sourceMappingURL=6093.48a63b4b.chunk.js.map