"use client"; import { Swiper, SwiperSlide } from "swiper/react"; import ContactFormBox from "./ContactFormBox"; import { Autoplay } from "swiper/modules"; import { useState } from "react"; import Image from "next/image"; type HeroSliderProps = { onClickBook?: () => void; }; type HeroSlideItem = { title: string; description: string; img: string; }; export default function HeroSlider({ onClickBook }: HeroSliderProps) { const [slideItems] = useState([ { title: "Real Estate, Redefined", description: "Where Southern Charm Meets Boutique Real Estate", img: "/images/bg-header2.jpg", }, { title: "Your Vision, Our Expertise", description: "Discover a Smarter Way to Buy & Sell", img: "/images/bg-header3.jpg", }, ]); return (
{slideItems.map((slide, idx) => ( {slide.title}
{slide.title}
{slide.description}
))}
); }