"use client"; import { Card, CardContent } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/components/ui/carousel"; import Image from "next/image"; import Icon from "@/components/ui/icon"; import { useState } from "react"; import { GuestDatePicker } from "@/components/form/guest-date-picker"; const yacht = { name: "Яхта", length: "12 метров", price: "от 18 000 ₽", perTime: "/ час", feet: "7 Футов", mainImage: "/images/featured-yacht/featured1.png", thumbnails: [ "/images/featured-yacht/featured1.png", "/images/featured-yacht/featured2.png", "/images/featured-yacht/featured3.png", "/images/featured-yacht/featured4.png", "/images/featured-yacht/featured5.png", "/images/featured-yacht/featured6.png", "/images/featured-yacht/featured7.png", "/images/featured-yacht/featured8.png", "/images/featured-yacht/featured9.png", "/images/featured-yacht/featured10.png", ], isPromoted: true, totalPrice: "0 ₽", }; export default function FeaturedYacht() { const [selectedImage, setSelectedImage] = useState(yacht.mainImage); const handleThumbnailClick = (imageSrc: string) => { setSelectedImage(imageSrc); }; return (
{/* Left side - Yacht details and images */}
{/* Promoted banner - Mobile only */}
Заметнее других — бронируют быстрее
{/* Header with yacht name and length */}

{yacht.name}

{yacht.length}
{/* Main yacht image */}
{yacht.name}
{/* Thumbnail images carousel */}
{yacht.thumbnails.map((thumb, idx) => (
{`${ handleThumbnailClick( thumb ) } />
))}
{/* Promoted badge */} {yacht.isPromoted && (
Это объявление продвигается.{" "} Хотите так же?
)}
{/* Right side - Booking form */}
{/* Promoted banner - Desktop only */}
Заметнее других — бронируют быстрее
{/* Price */}

{yacht.price} {yacht.perTime}

{/* Booking form */}
{/* Book button */} {/* Total price */}
Итого: {yacht.totalPrice}
); }