/* global React */
const { useState, useEffect, useMemo, useRef } = React;
// ─── Icon set ─────────────────────────────────────────────
const Icon = ({ name, className = "i" }) => {
const paths = {
search: <>>,
map: <>>,
home: <>>,
bed: <>>,
user: <>>,
users: <>>,
briefcase: <>>,
heart: <>>,
bell: <>>,
msg: <>>,
grid: <>>,
list: <>>,
plus: <>>,
arrowRight: <>>,
arrowLeft: <>>,
chevDown: <>>,
chevRight: <>>,
check: <>>,
star: <>>,
shield: <>>,
accessibility: <>>,
pet: <>>,
leaf: <>>,
key: <>>,
calendar: <>>,
cash: <>>,
inbox: <>>,
chart: <>>,
settings: <>>,
sun: <>>,
moon: <>>,
globe: <>>,
filter: <>>,
pin: <>>,
door: <>>,
eye: <>>,
eyeOff: <>>,
upload: <>>,
logo: <>>,
cube: <>>,
sparkle: <>>,
paperclip: <>>,
send: <>>,
flag: <>>,
clipboard: <>>,
ext: <>>,
location: <>>,
sober: <>>,
};
return (
);
};
// ─── Logo ─────────────────────────────────────────────
const Logo = ({ size = 28 }) => (
Roomly
);
// ─── Top nav ─────────────────────────────────────────
const TopNav = ({ onNav, current, theme, setTheme, role = "guest" }) => {
return (
);
};
// ─── Footer ─────────────────────────────────────────
const Footer = () => (
);
// Real photo URLs (Unsplash)
const ROOM_IMG = [
"https://images.unsplash.com/photo-1505691938895-1758d7feb511?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1540518614846-7eded433c457?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1598928506311-c55ded91a20c?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1567767292278-a4f21aa2d36e?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1595526114035-0d45ed16cfbf?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1502672260266-1c1ef2d93688?w=900&q=70&auto=format&fit=crop",
];
const CITY_IMG = {
"Oakland": "https://images.unsplash.com/photo-1605640840605-14ac1855827b?w=600&q=70&auto=format&fit=crop",
"Phoenix": "https://images.unsplash.com/photo-1558389186-438424b00a3f?w=600&q=70&auto=format&fit=crop",
"Houston": "https://images.unsplash.com/photo-1571867424488-4565932edb41?w=600&q=70&auto=format&fit=crop",
"Atlanta": "https://images.unsplash.com/photo-1575917649705-5b59aaa12e6b?w=600&q=70&auto=format&fit=crop",
"Detroit": "https://images.unsplash.com/photo-1564594985645-4427056e22e2?w=600&q=70&auto=format&fit=crop",
"Portland": "https://images.unsplash.com/photo-1587613864521-9ef8dfe617cc?w=600&q=70&auto=format&fit=crop",
"Cleveland": "https://images.unsplash.com/photo-1610483178519-1ec7ba78d9b7?w=600&q=70&auto=format&fit=crop",
"Tampa": "https://images.unsplash.com/photo-1605723517503-3a51f04f0fcb?w=600&q=70&auto=format&fit=crop",
"Denver": "https://images.unsplash.com/photo-1602800458591-eddda28a498b?w=600&q=70&auto=format&fit=crop",
"Memphis": "https://images.unsplash.com/photo-1606154996379-cf6e96eaae9c?w=600&q=70&auto=format&fit=crop",
"Albuquerque": "https://images.unsplash.com/photo-1583318432730-a19c89692612?w=600&q=70&auto=format&fit=crop",
"Baltimore": "https://images.unsplash.com/photo-1587161937999-b81fbf48a89c?w=600&q=70&auto=format&fit=crop",
};
const PATH_IMG = {
case: "https://images.unsplash.com/photo-1573497019940-1c28c88b4f3e?w=900&q=70&auto=format&fit=crop",
ind: "https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=900&q=70&auto=format&fit=crop",
host: "https://images.unsplash.com/photo-1568605114967-8130f3a36994?w=900&q=70&auto=format&fit=crop",
};
const ROOM_DETAIL_IMGS = [
"https://images.unsplash.com/photo-1540518614846-7eded433c457?w=1400&q=75&auto=format&fit=crop",
"https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1552321554-5fefe8c9ef14?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1556909172-54557c7e4fb7?w=900&q=70&auto=format&fit=crop",
"https://images.unsplash.com/photo-1592595896616-c37162298647?w=900&q=70&auto=format&fit=crop",
];
window.ROOM_IMG = ROOM_IMG;
window.CITY_IMG = CITY_IMG;
window.PATH_IMG = PATH_IMG;
window.ROOM_DETAIL_IMGS = ROOM_DETAIL_IMGS;
const Photo = ({ src, tone, label, style, className = "" }) => (
{!src && label && {label}}
);
window.Photo = Photo;