import Link from "next/link"; import { notFound } from "next/navigation"; import { ArrowRight, MessageSquare, Phone } from "lucide-react"; import HeaderSm from "../../components/HeaderSm"; import Button from "../../components/Button"; import CtaBand from "../../components/CtaBand"; import FaqList from "../../components/FaqList"; import JsonLd from "../../components/JsonLd"; import { areas, getArea } from "@/lib/areas"; import { services } from "@/lib/services"; import { business, links, pageMetadata, serviceSchema } from "@/lib/site"; export const dynamicParams = false; export function generateStaticParams() { return areas.map(({ slug }) => ({ suburb: slug })); } export async function generateMetadata({ params }) { const area = getArea((await params).suburb); return pageMetadata({ title: `Computer Repair ${area.name} | Te Atatu Computers`, description: `Laptop & PC repairs, upgrades, virus removal and IT support in ${area.name}. $35 diagnosis, no fix no fee. Call or text ${business.phone}.`, path: `/areas/${area.slug}`, }); } export default async function AreaPage({ params }) { const area = getArea((await params).suburb); if (!area) notFound(); const faqs = [ area.faq, { question: "How much will it cost?", answer: "A diagnosis is $35, and if I can't fix it you don't pay it. Labour is $35 an hour and parts are extra. I'll tell you the cost before I start.", }, ]; return (

{area.intro}

Getting your computer to me

{area.gettingThere}

I work Monday to Friday, 9am to 6pm, and weekends by appointment. Most repairs are done within 24–48 hours, although this isn't guaranteed.

What I can help with in {area.name}

    {Object.entries(services).map(([slug, service]) => (
  • {service.name}
  • ))}

See all prices on the{" "} pricing page . I don't repair Apple devices.

Questions

Other areas I serve

    {areas .filter(({ slug }) => slug !== area.slug) .map(({ slug, name }) => (
  • {name}
  • ))}
); }