"use client" import { useState, useEffect } from "react" import { ChevronLeft, ChevronRight } from "lucide-react" const images = [ "https://api-new.harifsport.com/home/img/editable/casj-1822.jpg", "https://api-new.harifsport.com/home/img/editable/casj-18s.jpg" ] export function HeroBanner() { const [currentIndex, setCurrentIndex] = useState(0) useEffect(() => { const timer = setInterval(() => { setCurrentIndex((prev) => (prev + 1) % images.length) }, 5000) return () => clearInterval(timer) }, []) return (
{images.map((src, index) => ( {`Banner ))} {/* Navigation Arrows */} {/* Indicators */}
{images.map((_, index) => (
) }