import { jsx as _jsx } from "react/jsx-runtime";
import { List } from './styles';
import { TreeItem } from './TreeItem';
import { useLogic } from './useLogic';
const INITIAL_LEVEL = 0;
export const TreeLikeList = (props) => {
    const { listProps, itemProps } = useLogic(props);
    const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
    return (_jsx(List, { className: className, ...listProps, children: data.map((item) => (_jsx(TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
};
