import { HardDrive, Folder } from 'lucide-react'; import { useStorageUsage } from '@/hooks/useStorage'; interface StorageUsageCardProps { className?: string; } function formatBytes(bytes: number): string { if (bytes < 1024) return `${bytes} B`; if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`; if (bytes < 1024 * 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)} MB`; return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB`; } export function StorageUsageCard({ className = '' }: StorageUsageCardProps) { const { data, isLoading, error } = useStorageUsage(); if (isLoading) { return (
Unable to load storage usage