'use client' import { useState } from 'react' import { Tab, TabGroup, TabList, TabPanel, TabPanels, } from '@headlessui/react' const product = { name: 'VEDA II', images: [ { id: 1, name: 'Veda 1', src: '/images/veda20.jpg', alt: 'Veda2 Veda 1', }, { id: 2, name: 'Veda 2', src: '/images/veda21.jpg', alt: 'Veda2 Veda 2', }, { id: 3, name: 'Veda 3', src: '/images/veda22.jpg', alt: 'Veda2 Veda 3', }, { id: 4, name: 'Veda 4', src: '/images/veda23.jpg', alt: 'Veda2 Veda 4', }, { id: 5, name: 'Veda 4', src: '/images/veda24.jpg', alt: 'Veda2 Veda 4', }, { id: 6, name: 'Veda 4', src: '/images/veda25.jpg', alt: 'Veda2 Veda 4', }, { id: 7, name: 'Veda 4', src: '/images/veda26.jpg', alt: 'Veda2 Veda 4', }, { id: 8, name: 'Veda 4', src: '/images/veda27.jpg', alt: 'Veda2 Veda 4', }, ], colors: [ { name: 'Washed Black', bgColor: 'bg-gray-700', selectedColor: 'ring-gray-700' }, { name: 'White', bgColor: 'bg-white', selectedColor: 'ring-gray-400' }, { name: 'Washed Gray', bgColor: 'bg-gray-500', selectedColor: 'ring-gray-500' }, ], description: `

This elegant 45-meter dahabiya is perfect for hosting larger groups, healing retreats, company getaways, and more. It provides a comfortable and customizable experience for all guests on board.

VEDA II accommodates up to 20 guests in 10 rooms, each equipped with double beds that can be converted into singles. Every room features a private bathroom for added convenience and privacy. Among these rooms, two are suites with charming balconies.

VEDA II boasts a spacious and inviting upper deck, thoughtfully divided into multiple areas, including a sunbathing section, a Bedouin corner, and a dining area. The sun deck offers customizable space to suit your specific needs and preferences.

`, details: [ { name: 'FEATURES', items: [ '10 Rooms: 8 standard rooms and 2 suites with balconies', 'Hosts up to 20 people', 'Leather handle and tabs', 'Private bathroom ensuites in each room', 'Large, cozy upper deck', 'Designated outdoor areas for sunbathing, relaxation, and dining', 'Customizable sun deck space to accommodate unique requirements', ], }, // More sections... ], } function classNames(...classes) { return classes.filter(Boolean).join(' ') } export default function Example() { const [selectedColor, setSelectedColor] = useState(product.colors[0]) return (
{/* Image gallery */} {product.images.map((image) => ( {image.alt} ))} {/* Image selector */}
{product.images.map((image) => ( classNames( 'group relative flex h-24 cursor-pointer items-center justify-center rounded-md bg-white text-sm font-medium uppercase text-gray-900 hover:bg-gray-50 focus:outline-none focus:ring focus:ring-opacity-50 focus:ring-offset-4', selected ? 'ring-indigo-500' : 'ring-transparent' ) } > {image.name} {image.alt} ))}
{/* Product info */}

{product.name}

Product information

Description

Additional details

FEATURES

    {product.details[0].items.map((item) => (
  • {item}
  • ))}
) }