"use client";

import { Gauge, Headphones, Network, ServerCog, ShieldCheck, Users } from "lucide-react";
import { ProductCatalogPage } from "@/components/ProductCatalogPage";
import { privateNodeTiers } from "@/lib/data/product-config";

const nodeConfig = [
  {
    label: "Management",
    options: [
      { label: "Managed Panel", description: "Sonata handles panel setup, monitoring, and base updates.", icon: ServerCog, badge: "Easy" },
      { label: "Root Access", description: "Dedicated hardware with full control for your admins.", icon: Gauge },
      { label: "Priority Support", description: "Direct help for migrations and high-impact incidents.", icon: Headphones },
    ],
  },
  {
    label: "and use cases...",
    options: [
      { label: "Game Protected", description: "DDoS profile tuned for game traffic.", icon: ShieldCheck, badge: "Default" },
      { label: "High Throughput", description: "Bandwidth-first profile for multi-server communities.", icon: Network },
      { label: "Community Scale", description: "Prepared for many users, backups, and scheduled events.", icon: Users },
    ],
  },
];

export default function PrivateNodePage() {
  return (
    <ProductCatalogPage
      tiers={privateNodeTiers}
      defaultTier="pro"
      eyebrow="Private Node"
      title="Your dedicated"
      accentTitle="game node."
      description="Bare-metal resources for communities that need room to grow. Dedicated CPU, memory, storage, and a network profile built around player stability."
      ctaLabel="Reserve Node"
      configGroups={nodeConfig}
      specFields={[
        { key: "cpu", label: "CPU" },
        { key: "ram", label: "Memory" },
        { key: "storage", label: "Storage" },
        { key: "slots", label: "Slots" },
      ]}
      footerNote="Private nodes are provisioned with a quick handoff checklist after order confirmation."
    />
  );
}
