Tổng {files.length} tệp • Tổng dung lượng{" "}
{formatBytes(files.reduce((acc, f) => acc + f.size, 0))}
{canUpload && (
)}
{/* Search & Filters */}
setSearchQuery(e.target.value)}
placeholder="Tìm tên tệp hoặc đường dẫn..."
aria-label="Tìm kiếm tệp"
className="w-full pl-10 pr-4 py-2 rounded-xl bg-slate-950/90 border border-slate-800 text-xs sm:text-sm text-white placeholder:text-slate-600"
/>
{CATEGORIES.map((cat) => (
))}
{/* Breadcrumbs */}
{/* Content */}
{loading ? (
{Array.from({ length: 6 }).map((_, idx) => (
))}
) : subfolders.length === 0 && visibleFiles.length === 0 ? (
}
title="Chưa có tệp tin nào ở đây"
description={
isFiltering
? "Không tìm thấy tệp phù hợp với từ khóa hoặc bộ lọc hiện tại."
: "Tải lên tệp đầu tiên của bạn để bắt đầu lưu trữ và chia sẻ."
}
action={
canUpload ? (
) : undefined
}
/>
) : (