import{jsx as _jsx,Fragment as _Fragment}from"react/jsx-runtime";import{memo,useCallback}from"react";import{ContentItem}from"../ContentItem";import{VirtualList}from"./VirtualList";function ItemsComponent({items:t,routingBasePath:e}){const r=useCallback((t=>_jsx(ContentItem,{item:t,routingBasePath:e,children:t.items.length>0&&_jsx(VirtualList,{items:t.items,renderItem:r,routingBasePath:e})},t.id)),[e]);if(!t.length)return null;const n=t.length>15&&t.every((t=>"operation"===t.type||"schema"===t.type));return _jsx(_Fragment,{children:n?_jsx(VirtualList,{items:t,renderItem:r,routingBasePath:e}):_jsx(_Fragment,{children:t.map(r)})})}export const Items=memo(ItemsComponent);
//# sourceMappingURL=Items.js.map