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