import Link from 'next/link'; import StatusBadge from './StatusBadge'; import { HardDrive, Cpu, MemoryStick, Info, Terminal } from 'lucide-react'; interface VM { vmid: string; name: string; status: string; mem: string; bootdisk: string; } interface VMCardProps { vm: VM; } export default function VMCard({ vm }: VMCardProps) { const hasConsoleAccess = vm.vmid === '100'; return (
{/* Header */}

{vm.name}

ID: {vm.vmid}

{/* Stats */}
Storage {vm.bootdisk} GB
Memory {vm.mem} MB
{/* Actions */}
Details {hasConsoleAccess && ( Console )}
); }