"use strict";(globalThis.webpackChunk_jbrowse_web=globalThis.webpackChunk_jbrowse_web||[]).push([[9305],{69305:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k});var l=a(7552),n=a(29499),r=a(36715),c=a(1343),o=a(58507),i=a(5401),u=a(92562),m=a(68584);const k=({tracks:e,onClose:t})=>{const[a,k]=(0,l.useState)(`MultiWiggle ${Date.now()}`),s=e.every((e=>"QuantitativeTrack"===e.type));return l.createElement(u.A,{open:!0,onClose:()=>t(!1),title:"Confirm multi-wiggle track create"},l.createElement(n.A,null,l.createElement(r.A,null,s?null:"Not every track looks like a QuantitativeTrack. This could have unexpected behavior, confirm if it looks ok.","Listing:"),l.createElement("ul",null,e.map((e=>l.createElement("li",{key:e.trackId},(0,m.readConfObject)(e,"name")," - ",e.type)))),l.createElement(c.A,{value:a,onChange:e=>k(e.target.value),helperText:"Track name"}),l.createElement(r.A,null,"Confirm creation of track?")),l.createElement(o.A,null,l.createElement(i.A,{onClick:()=>t(!1),color:"primary"},"Cancel"),l.createElement(i.A,{onClick:()=>t(!0,{name:a}),color:"primary",variant:"contained",autoFocus:!0},"Submit")))}}}]);
//# sourceMappingURL=9305.af996ed3.chunk.js.map