import { ScopesDashboardsTreeDashboardItem } from './ScopesDashboardsTreeDashboardItem'; import { ScopesDashboardsTreeFolderItem } from './ScopesDashboardsTreeFolderItem'; import { OnFolderUpdate, SuggestedDashboardsFoldersMap } from './types'; export interface ScopesDashboardsTreeProps { folders: SuggestedDashboardsFoldersMap; folderPath: string[]; onFolderUpdate: OnFolderUpdate; } export function ScopesDashboardsTree({ folders, folderPath, onFolderUpdate }: ScopesDashboardsTreeProps) { const folderId = folderPath[folderPath.length - 1]; const folder = folders[folderId]; return (