"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[765],{40765:(e,o,n)=>{n.r(o),n.d(o,{default:()=>i});var t=n(7552),l=n(29499),r=n(99123),a=n(58507),s=n(5401),c=n(49823);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.A,null,i?t.createElement(c.ErrorMessage,{error:i}):null,t.createElement(r.A,null,"This action cannot be undone")),t.createElement(a.A,null,t.createElement(s.A,{onClick:()=>{o(!1)},color:"primary"},"Cancel"),t.createElement(s.A,{onClick:()=>{(async()=>{try{e&&n.removeSavedSession({name:e}),o(!0)}catch(e){console.error(e),u(e)}})()},color:"primary",variant:"contained",autoFocus:!0},"Delete")))}}}]);
//# sourceMappingURL=765.20669bca.chunk.js.map