import { formattedUnitTypes } from "../data/formattedUnitTypes"; import ArrowRightIcon from "./icons/ArrowRightIcon"; import HumanIcon from "./icons/HumanIcon"; import Button from "./ui/Button"; import { usePopupStore } from "../stores/usePopupStore"; interface UnitPopupProps { unitType: string; wing?: "East" | "West"; floor: number; unitNumber: string; squareFt: number; suitesArea: number; balconyArea: number; price: number; complexName: string; } function UnitPopup({ unitType, wing, floor, unitNumber, squareFt, complexName, }: UnitPopupProps) { const { setPopup } = usePopupStore(); return (
{formattedUnitTypes.get(unitType)}
{wing} Wing
> )}Floor {floor}
{unitNumber}
Virtual Tour
Total Area
{squareFt.toFixed(2)} Sqft
Suites Area
{suitesArea.toFixed(2)} Sqft
Balcony Area
{balconyArea.toFixed(2)} Sqft
{`AED ${Intl.NumberFormat("ar-AE", { currency: "AED", minimumFractionDigits: 0, }).format(price)}`}
*/}