import * as React from 'react'; import { css } from '@patternfly/react-styles'; import { Divider } from '../Divider'; import styles from '@patternfly/react-styles/css/components/TreeView/tree-view'; export interface TreeViewListProps extends React.HTMLProps { /** Child nodes of the current tree view. */ children: React.ReactNode; /** Flag indicating if the tree view is nested under another tree view. */ isNested?: boolean; /** Toolbar to display above the tree view. */ toolbar?: React.ReactNode; } export const TreeViewList: React.FunctionComponent = ({ isNested = false, toolbar, children, ...props }: TreeViewListProps) => ( <> {toolbar && ( {toolbar} )} ); TreeViewList.displayName = 'TreeViewList';