"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("lodash"),s=require("../types.js"),r=require("../../../constants/completion.js"),n=require("../utils/selectMenuKey.js"),l=require("../../../types/shared/Completions.js");exports.useMenuItems=function(u){var a=u.completionAppType,i=u.assets,c=u.fracFleetLines,o=u.enableSimulFracInPadSelect;return e.useMemo((function(){if(o&&c.length){var e=c.reduce((function(e,r){var u,a=[{key:n.getMenuItemKey(l.PadMode.padLine,r.id),label:r.name,isDisabled:!t.some(r.frac_fleet_line_wells,(function(e){return e.status===s.AssetStatus.active})),isSubItem:!1}],i=n.getWellsMenuItems(null!==(u=r.frac_fleet_line_wells)&&void 0!==u?u:[],!0);return i.length?e.concat(a.concat(i)):e}),[]);return e}var u=n.getWellsMenuItems(null!=i?i:[]);return r.DEFAULT_SUPPORTED_PAD_MODES.concat(u)}),[a,i,c,o])};
//# sourceMappingURL=useMenuItems.js.map
