"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[6093],{46093:(e,o,s)=>{s.r(o),s.d(o,{default:()=>d});var n=s(41867),r=s(47409),c=s(75258),l=s(27768),t=s(23801),a=s(35421),i=s(80838);const d=e=>{let{sessionToDelete:o,onClose:s,rootModel:d}=e;const[h,u]=(0,n.useState)();return(0,i.jsxs)(a.Dialog,{open:!0,onClose:()=>s(!1),title:'Delete session "'.concat(o,'"?'),children:[(0,i.jsxs)(r.Z,{children:[h?(0,i.jsx)(a.ErrorMessage,{error:h}):null,(0,i.jsx)(c.Z,{children:"This action cannot be undone"})]}),(0,i.jsxs)(l.Z,{children:[(0,i.jsx)(t.Z,{onClick:()=>s(!1),color:"primary",children:"Cancel"}),(0,i.jsx)(t.Z,{onClick:()=>{(async()=>{try{d.removeSavedSession({name:o}),s(!0)}catch(e){console.error(e),u(e)}})()},color:"primary",variant:"contained",autoFocus:!0,children:"Delete"})]})]})}}}]);
//# sourceMappingURL=6093.e5418b80.chunk.js.map