// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import List from "@material-ui/core/List/List"; import ListItem from "@material-ui/core/ListItem/ListItem"; import { ReactElement } from "react"; interface TreeProps { items: T[], render: (item: T) => ReactElement<{}> } class Tree extends React.Component, {}> { render() { return {this.props.items.map((it: T, idx: number) => {this.props.render(it)} )} } } export default Tree;