toggleFolderSelection("root", "My Drive")}
className="shrink-0 h-3.5 w-3.5 sm:h-4 sm:w-4 border-slate-400/20 dark:border-white/20"
/>
{isLoadingRoot && (
)}
{!isLoadingRoot && rootItems.map((item) => renderItem(item, 0))}
{!isLoadingRoot && rootError && (
{(rootError instanceof Error ? rootError.message : String(rootError)).includes(
"authentication expired"
)
? "Google Drive authentication has expired. Please re-authenticate above."
: "Failed to load Google Drive contents."}
)}
{!isLoadingRoot && !rootError && rootItems.length === 0 && (
No files or folders found in your Google Drive
)}