"use client";

import {
  VehicleCompanyServiceClient,
  type Company,
} from "@/app/services/VehicleCompanyServiceClient";

export function BatteryServiceClient({
  initialCarCompanies,
  initialBikeCompanies,
  initialVehicleType,
  initialErrorMessage,
}: {
  initialCarCompanies?: Company[];
  initialBikeCompanies?: Company[];
  initialVehicleType?: "car" | "bike";
  initialErrorMessage?: string;
}) {
  return (
    <VehicleCompanyServiceClient
      initialCarCompanies={initialCarCompanies}
      initialBikeCompanies={initialBikeCompanies}
      initialVehicleType={initialVehicleType}
      initialErrorMessage={initialErrorMessage}
      copy={{
        currentPage: "Battery Service",
        eyebrow: "Battery checks and support",
        title: "Choose car or bike battery service.",
        lead: (locationName) =>
          `Select the vehicle type first, then choose the company for battery check, jump start, wiring, or replacement support${locationName ? ` in ${locationName}` : ""}.`,
        serviceName: "Battery Service",
        servicePath: "battery-service",
        packageType: "battery_service",
        cardSubtitle: "Tap to request battery service",
        carDescription: "Battery health check, jump start, wiring faults, and replacement support.",
        bikeDescription: "Battery diagnosis, charging issues, wiring checks, and replacement help.",
      }}
    />
  );
}
