"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),t=require("react"),a=require("lodash/uniqBy"),u=require("../types.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=r(e),n=r(a);exports.useCombinedPads=function(e){var a=e.padStatus,r=e.selectedPads,l=e.activePads,i=e.nonActivePads;return t.useMemo((function(){if(!r.length)return[];var e=[];return a===u.PadStatus.Active&&(e=n.default([].concat(d.default(r),d.default(l)),"id")),a===u.PadStatus.Inactive&&(e=n.default([].concat(d.default(r),d.default(i)),"id")),a===u.PadStatus.All&&(e=n.default([].concat(d.default(r),d.default(l),d.default(i)),"id")),e.filter((function(e){return!!e.wells.length}))}),[l,i,a,r])};
//# sourceMappingURL=useCombinedPads.js.map
