import { Card } from '@/components/ui/Card';
import { Badge } from '@/components/ui/Badge';
import { StatusDot } from '@/components/ui/StatusDot';

const services = [
  'WireGuard wg0',
  'DNAT rules',
  'IP forwarding',
  'Persistent keepalive',
  'Backup system',
];

export function ServicesHealthPanel() {
  return (
    <Card className="h-full">
      <div className="flex items-center justify-between">
        <h3 className="font-semibold text-white">
          Services Health
        </h3>

        <span className="text-xs text-slate-500">
          fw4 / nftables
        </span>
      </div>

      <div className="mt-5 space-y-4">
        {services.map((service) => (
          <div
            key={service}
            className="flex items-center justify-between rounded-xl border border-white/5 bg-white/[0.02] px-4 py-3"
          >
            <div className="flex items-center gap-3">
              <StatusDot />

              <div>
                <p className="text-sm font-medium text-white">
                  {service}
                </p>

                <p className="text-xs text-slate-500">
                  Running baseline check
                </p>
              </div>
            </div>

            <Badge>
              Running
            </Badge>
          </div>
        ))}
      </div>
    </Card>
  );
}