{/* Tabs */}
{activeTab === "stats" && (
{/* Summary Cards */}
{/* Tables Grid */}
{/* Entity Table */}
By Entity Type
| Entity |
File Count |
Total Size |
{Object.entries(stats.by_entity).map(([name, data]) => (
|
{name}
|
{data.count}
|
{formatBytes(data.size)}
|
))}
{/* Module Table */}
| Module |
File Count |
Total Size |
{Object.entries(stats.by_module).map(([name, data]) => (
|
{name}
|
{data.count}
|
{formatBytes(data.size)}
|
))}
)}
{activeTab === "quota" && (
Quota Profile
setIsEditModalOpen(true)}
size="default"
className="px-4 py-2.5 text-sm"
>
Edit Quota
{[
{
label: "Max Total Storage",
value:
quota.max_storage_formatted ||
formatBytes(quota.max_storage_bytes),
icon: HardDrive,
},
{
label: "Max Per-File Size",
value:
quota.max_file_size_formatted ||
formatBytes(quota.max_file_size_bytes),
icon: FileText,
},
{
label: "Currently Used",
value:
quota.used_storage_formatted ||
formatBytes(quota.used_storage_bytes),
icon: Save,
},
{
label: "File Count",
value: `${quota.file_count} items`,
icon: Files,
},
{
label: "Last Updated",
value: new Date(quota.updated_at).toLocaleString(),
icon: CheckCircle2,
},
].map((row) => (
|
{row.label}
|
{row.value}
|
))}
System Security Policy
The following extensions are strictly blocked to prevent
malicious execution:
{quota.blocked_extensions?.map((ext) => (
{ext}
))}
)}
{isEditModalOpen && (