2025-02-05 00:07:38 +05:30

7 lines
201 B
TypeScript

import Branch from './Branch';
import { TreeProps } from './types';
export default function Tree<T>(props: TreeProps<T>) {
return props.data?.map((n) => <Branch key={n.id} item={n} level={0} />);
}