"use strict";(self.webpackChunk_jbrowse_web=self.webpackChunk_jbrowse_web||[]).push([[791],{40791:function(e,n,o){o.r(n),o.d(n,{default:function(){return f}});o(96902);var s=o(4782),r=o(99826),t=o(83674),i=o(52809),l=o(35388),c=o(99688),a=o(44536),u=o(29938);var f=(0,s.observer)((function(e){var n,o=e.rootModel,s=e.onClose;if(!o)return null;if("object"!==typeof(n=o)||!n||!("jbrowse"in n))return console.error("Incorrect rootmodel"),null;var f=o.jbrowse,d=o.session;return(0,u.jsxs)(r.Z,{open:!0,onClose:s,children:[(0,u.jsx)(t.Z,{children:"Set default session"}),(0,u.jsx)(i.Z,{children:(0,u.jsx)(l.Z,{children:'Select "Set current session as default" to make your current session saved to the config file. You can also hit "Clear default session", which would remove the default session from the config.'})}),(0,u.jsxs)(c.Z,{children:[(0,u.jsx)(a.Z,{variant:"contained",onClick:function(){f.setDefaultSessionConf({name:"New session"}),s()},children:"Clear default session"}),(0,u.jsx)(a.Z,{color:"secondary",variant:"contained",onClick:function(){return s()},children:"Cancel"}),(0,u.jsx)(a.Z,{color:"primary",variant:"contained",onClick:function(){f.setDefaultSessionConf(d),s()},children:"Set current session as default"})]})]})}))}}]);
//# sourceMappingURL=791.2acef896.chunk.js.map