import { CpuIcon } from 'lucide-react'; import { humanize } from '@/portainer/filters/filters'; import memoryIcon from '@/assets/ico/memory.svg?c'; import { Icon } from '@@/Icon'; import { DockerSnapshot } from '../snapshots/types'; export function SnapshotStats({ snapshot, }: { snapshot: DockerSnapshot | undefined; }) { if (!snapshot) { return null; } return ( {snapshot.TotalCPU} {humanize(snapshot.TotalMemory)} ); }