import{jsx as t}from"react/jsx-runtime";import{useMemo as i,useCallback as e}from"react";import r from"classnames";import s from"../../ListItem/ListItem.js";import a from"../../ListTitle/ListTitle.js";import o from"../../VirtualizedList/VirtualizedList.js";import l from"./VirtualizedListItems.module.scss.js";var m="title",n="item",p=function(p){var c=p.children,d=i((function(){return(Array.isArray(c)?c:[c]).map((function(t,i){var e=t.type.displayName;return e===a.displayName?{type:m,id:"list-title-".concat(i),props:t.props,height:48}:e===s.displayName?{type:n,id:t.props.id||"list-item-".concat(i),props:t.props,height:32}:void 0})).filter((function(t){return void 0!==t}))}),[c]),u=e((function(i,e,r){var o,l=i.props;switch(i.type){case m:o=t(a,Object.assign({},l));break;case n:o=t(s,Object.assign({},l))}return t("div",Object.assign({className:"l3-style-list_virtualized-list-element",style:r},{children:o}))}),[]);return t(o,{scrollableClassName:r(l.scrollableContainer),items:d,itemRenderer:u})};export{p as VirtualizedListItems};
