+
+
+ {breadcrumbs.map((crumb, idx) => {
+ const isLast = idx === breadcrumbs.length - 1
+ return (
+
+
+ {isLast ? (
+
+ {crumb.name}
+
+ ) : (
+
+ )}
+
+ )
+ })}
+
+ {isRoot && (
+
+ )}
+
+ {items.length === 0 ? (
+
+
+
+ {isRoot
+ ? 'No workspaces yet. Create one to get started.'
+ : 'This folder is empty.'}
+
+ {isRoot && (
+
+ )}
+
+ ) : (
+
+ {items.map((item) => {
+ const childCount = item.kind === 'dir' ? countChildren(item) : 0
+ const Icon = item.kind === 'dir' ? FolderIcon : FileIcon
+ return (
+
+ )
+ })}
+
+ )}
+