"use client"; import { cn } from "@/lib/utils"; import { FILES_BADGE_SURFACE } from "@/modules/files/components/file-manager-surface"; import { Trash2 } from "@/components/icons/platform-icons"; type StatusBarProps = { clipboardName: string | null; clipboardOperation: "copy" | "move" | null; currentPathForDisplay: string[]; fileCount: number; folderCount: number; isStarredView: boolean; isTrashView: boolean; rootLabel: string; selectedFilesCount: number; statusNotice: string | null; onTrashSelected: () => void; }; export function FileManagerStatusBar({ clipboardName, clipboardOperation, currentPathForDisplay, fileCount, folderCount, isStarredView, isTrashView, rootLabel, selectedFilesCount, statusNotice, onTrashSelected, }: StatusBarProps) { return (
{folderCount > 0 && `${folderCount} folder${folderCount > 1 ? "s" : ""}`} {folderCount > 0 && fileCount > 0 ? ", " : ""} {fileCount > 0 && `${fileCount} file${fileCount > 1 ? "s" : ""}`} {selectedFilesCount > 1 && ( {selectedFilesCount} selected {!isTrashView && !isStarredView && ( )} )}
{statusNotice && ( {statusNotice} )} {clipboardName && clipboardOperation && ( {clipboardOperation === "copy" ? "Clipboard" : "Cut"}: {clipboardName} )} {rootLabel} {currentPathForDisplay.length > 0 ? `/${currentPathForDisplay.join("/")}` : ""}
); }