import t from"@babel/runtime/helpers/toConsumableArray";import{useMemo as r}from"react";import e from"lodash/uniqBy";import{PadStatus as n}from"../types.js";var o=function(o){var a=o.padStatus,i=o.selectedPads,c=o.activePads,l=o.nonActivePads;return r((function(){if(!i.length)return[];var r=[];return a===n.Active&&(r=e([].concat(t(i),t(c)),"id")),a===n.Inactive&&(r=e([].concat(t(i),t(l)),"id")),a===n.All&&(r=e([].concat(t(i),t(c),t(l)),"id")),r.filter((function(t){return!!t.wells.length}))}),[c,l,a,i])};export{o as useCombinedPads};
//# sourceMappingURL=useCombinedPads.js.map
