@minimaltech/ra-infra
Version:
Minimal Technology ReactJS Infrastructure
10 lines • 557 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { List, ListItem } from '@mui/material';
import { TreeItem } from './TreeItem';
export const Tree = (props) => {
const { data, itemProps } = props;
return (_jsx(List, { disablePadding: true, dense: true, sx: { width: 1 }, children: data.map(item => {
return (_jsx(ListItem, { dense: true, disableGutters: true, disablePadding: true, sx: { width: 1 }, children: _jsx(TreeItem, { data: item, level: 1, ...itemProps }) }, item.id));
}) }));
};
//# sourceMappingURL=Tree.js.map