"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[4268],{94268:(e,a,s)=>{s.r(a),s.d(a,{default:()=>p});var n=s(7552),l=s(99546),i=s(95054),r=s(61282),c=s(91818),t=s(21049),d=s(10240),h=s(69092),o=s(68446),m=s(75785),u=s(69500);const g=(0,m.n9)()(e=>({selectPaper:{padding:e.spacing(4)},m2:{margin:2}})),p=(0,o.observer)(({session:e})=>{const{classes:a}=g(),{pluginManager:s}=(0,l.getEnv)(e),o=s.getViewElements(),[m,p]=(0,n.useState)(o[0]?.name||"");return(0,u.jsxs)(i.A,{className:a.selectPaper,children:[(0,u.jsx)(r.A,{children:"Select a view to launch"}),(0,u.jsx)(c.A,{className:a.m2,children:(0,u.jsx)(t.A,{value:m,onChange:e=>{p(e.target.value)},children:o.filter(({viewMetadata:e})=>!e.hiddenFromGUI).map(({displayName:e,name:a})=>(0,u.jsx)(d.A,{value:a,children:e},a))})}),(0,u.jsx)(c.A,{className:a.m2,children:(0,u.jsx)(h.A,{onClick:()=>e.addView(m,{}),variant:"contained",color:"primary",children:"Launch view"})})]})})}}]);
//# sourceMappingURL=4268.ccbcefd4.chunk.js.map