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