import{useMemo as t}from"react";var n=function(t){return Array.from(t).map((function(t){return{label:t,value:t}})).sort((function(t,n){return t.label.localeCompare(n.label)}))},e=function(e,o){var i=t((function(){var t=new Set,i=new Set;return e.forEach((function(n){n.fleetName&&o.toString()!==n.id.toString()&&(t.add(n.fleetName),n.wells.forEach((function(t){t.formation&&i.add(t.formation)})))})),{fracFleetOptions:n(t),formationOptions:n(i),padOptions:[{title:"All",id:"all"},{title:"Active",id:"active"},{title:"Inactive",id:"inactive"}]}}),[e,o]);return{fracFleetOptions:i.fracFleetOptions,formationOptions:i.formationOptions,padOptions:i.padOptions}};export{e as useOptions};
//# sourceMappingURL=useOptions.js.map
