import { useState } from "react"; import { Canvas } from "@react-three/fiber"; import VirtualTourWrapper from "../components/virtualTour/VirtualTourWrapper"; import Button from "../components/Button"; import HeartIcon from "../components/icons/Heart"; import ChevronDownIcon from "../components/icons/ChevronDownIcon"; import ButtomPanelCompass from "../components/ButtomPanelCompass"; import BookingIcon from "../components/icons/BookingIcon"; import { spheres } from "../consts/spheres"; import { IAppartmentSphere } from "../types/apartmentSphere"; import useSphere from "../store/useSphere"; const VirtualTour = () => { const [isActive, setIsActive] = useState(false); const { setSelectedSphere } = useSphere(); const handleOnShowClick = () => { setIsActive((prev) => !prev); }; const handleOnLabelClick = (sphere: IAppartmentSphere) => { setSelectedSphere(sphere); }; return (

Rove Home Marasi Drive{" "}

East Wing

Floor 11

№ 213

234

1 bedroom appartment

Size

609 Sqft

Status

Available

{spheres.map((sphere) => { return (
handleOnLabelClick(sphere)} className="bg-[#F3F3F2] font-semibold text-[#0D1922] text-caption-s py-0.5 px-2 w-fit rounded-full cursor-pointer pointer-events-auto select-none" key={sphere.id} > {sphere.roomType}
); })}
Show
Hide
); }; export default VirtualTour;