"use client"; import React, { useState } from "react"; import IndustryWorldMap from "./IndustryWorldMap"; type Tab = "challenges" | "solutions"; interface Industry { id: string; tab: string; eyebrow: string; title: string; image: string; alt: string; desc: string; chips: [string, string]; challenges: string[]; solutions: string[]; } const INDUSTRIES: Industry[] = [ { id: "fmcg", tab: "FMCG", eyebrow: "Fast-Moving Consumer Goods", title: "FMCG", image: "/images/tab-pic-1-solution.jpeg", alt: "FMCG logistics", desc: "FMCG logistics demands speed, precision, and continuous fulfillment across high-volume delivery networks — balancing tight timelines, inventory movement, and efficiency without compromising availability.", chips: ["99.2% On-Time", "Live Route Sync"], challenges: [ "Unpredictable demand spikes create delivery pressure during peak periods.", "Fresh-product expiry constraints require faster, precisely timed deliveries.", "Multi-stop route complexity increases travel time and coordination cost.", "Inventory stockout risks rise when delays disrupt fast-moving distribution.", ], solutions: [ "AI demand forecasting adapts delivery plans instantly to real-time order demand.", "Expiry-aware routing prioritises perishable goods for on-time freshness.", "Smart multi-stop optimisation groups orders to cut cost and travel time.", "Real-time inventory sync prevents stockouts and improves fulfilment accuracy.", ], }, { id: "pharma", tab: "Pharma", eyebrow: "Pharmaceutical Logistics", title: "Pharma", image: "/images/tab-pic-2-solution.jpeg", alt: "Pharma logistics", desc: "Pharma logistics requires precision, compliance, and real-time monitoring so every shipment arrives safely and on time — from temperature-sensitive medicines to urgent emergency deliveries.", chips: ["Cold Chain Active", "Zero Delay SLA"], challenges: [ "Cold chain integrity demands precise temperature control throughout transit.", "Regulatory compliance must be tracked and documented on every delivery.", "Critical delivery time windows require highly accurate scheduling.", "Emergency shipments need instant dispatch and zero-delay execution.", ], solutions: [ "Cold chain monitoring with automatic re-routing keeps shipments in-spec.", "Compliance engine with audit trails ensures full chain-of-custody visibility.", "Precision scheduling locks in critical delivery windows reliably.", "Priority dispatch queue fast-tracks urgent, life-critical shipments.", ], }, { id: "b2b", tab: "Enterprise & B2B", eyebrow: "Enterprise & B2B", title: "Enterprise & B2B", image: "/images/tab-pic-3-solution.jpeg", alt: "Enterprise and B2B logistics", desc: "Enterprise and B2B logistics require coordination and reliability to manage high-value shipments at scale — with appointment scheduling, white-glove standards, and strict SLA commitments.", chips: ["SLA Guaranteed", "White-Glove Ready"], challenges: [ "Appointment scheduling requires precise timing across many locations.", "White-glove delivery standards demand premium handling and accuracy.", "Multi-location routing complexity grows with large-scale operations.", "Strict SLA commitments pressure teams to stay timely and error-free.", ], solutions: [ "Intelligent appointment engine streamlines and automates delivery slots.", "White-glove workflow module enforces premium handling end to end.", "Enterprise route planner coordinates efficient multi-location delivery.", "SLA monitoring dashboard tracks commitments and flags risk in real time.", ], }, ]; export default function SolutionCard1() { const [active, setActive] = useState(0); const [tab, setTab] = useState("challenges"); const ind = INDUSTRIES[active]; const selectIndustry = (i: number) => { setActive(i); setTab("challenges"); // reset to Challenges on industry switch }; return ( <>