"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Items=void 0;const jsx_runtime_1=require("react/jsx-runtime"),react_1=require("react"),ContentItem_1=require("../ContentItem"),VirtualList_1=require("./VirtualList");function ItemsComponent({items:e,routingBasePath:t}){const r=(0,react_1.useCallback)((e=>(0,jsx_runtime_1.jsx)(ContentItem_1.ContentItem,{item:e,routingBasePath:t,children:e.items.length>0&&(0,jsx_runtime_1.jsx)(VirtualList_1.VirtualList,{items:e.items,renderItem:r,routingBasePath:t})},e.id)),[t]);if(!e.length)return null;const i=e.length>15&&e.every((e=>"operation"===e.type||"schema"===e.type));return(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:i?(0,jsx_runtime_1.jsx)(VirtualList_1.VirtualList,{items:e,renderItem:r,routingBasePath:t}):(0,jsx_runtime_1.jsx)(jsx_runtime_1.Fragment,{children:e.map(r)})})}exports.Items=(0,react_1.memo)(ItemsComponent);
//# sourceMappingURL=Items.js.map