"use client"; import { usePathname } from "@/components/navigation"; import { Icon } from "@/components/ui/icon"; import { cn } from "@/lib/utils"; const CheckoutHeader = () => { const pathname = usePathname(); const stepsArray = [ { step: 0, icon: "mdi:cart-outline", title: "My Cart", href: "/ecommerce/frontend/checkout/cart", active: pathname.includes("/ecommerce/frontend/checkout/cart"), }, { step: 1, icon: "streamline:shipping-transfer-cart-package-box-fulfillment-cart-warehouse-shipping-delivery", title: "Shipping Info", href: "/ecommerce/frontend/checkout/shipping-info", active: pathname.includes("/ecommerce/frontend/checkout/shipping-info"), }, { step: 2, icon: "la:shipping-fast", title: "Delivery Info", href: "/ecommerce/frontend/checkout/delivery-info", active: pathname.includes("/ecommerce/frontend/checkout/delivery-info"), }, { step: 3, icon: "fluent:payment-32-regular", title: "Payment", href: "/ecommerce/frontend/checkout/payment", active: pathname.includes("/ecommerce/frontend/checkout/payment"), }, { step: 4, icon: "line-md:confirm-circle", title: "Confirmation", href: "/ecommerce/frontend/checkout/confirmation", active: pathname.includes("/ecommerce/frontend/checkout/confirmation"), }, ]; return (
); }; export default CheckoutHeader;