import React, { useEffect } from 'react'; import { useAppStore } from '../store/useAppStore'; import { HardDrive, RefreshCw, Layers } from 'lucide-react'; export const TreemapView: React.FC = () => { const { partitions, treemapItems, isLoadingTreemap, loadTreemap, startLeftoverScan, apps } = useAppStore(); useEffect(() => { loadTreemap(); }, []); const formatBytes = (bytes: number) => { const gb = bytes / (1024 * 1024 * 1024); return `${gb.toFixed(1)} GB`; }; const handleBlockClick = (name: string) => { const matchedApp = apps.find((a) => a.display_name === name); if (matchedApp) { startLeftoverScan(matchedApp); } }; return (
Uygulamaların diskte kapladığı alanı görsel olarak inceleyin.
Harita oluşturuluyor...