import Image from "next/image"; import { Clock } from "@/components/clock"; import { LanguageSwitcher } from "@/components/language-switcher"; import { LiveOnlineCount } from "@/components/live-online-count"; import { Reveal } from "@/components/motion-reveal"; import { ThemeSwitcher } from "@/components/theme-switcher"; import { ICON_LIGHTHOUSE } from "@/lib/site-icons"; /** * Shared frosted-glass top bar for the public pages (index, login, register). * Shows the hotel logo on the left and the live "online" counter (which carries * the hotel name), language / clock / theme controls on the right. One * component so every public page keeps the exact same chrome instead of * duplicating it. */ export function AuthTopBar({ hotelName, logo, online, }: { hotelName: string; logo?: string | null; /** Live online count; omit (or pass null) to hide the indicator. */ online?: number | null; }) { return (
{logo ? ( {hotelName} ) : (
)}
{typeof online === "number" && ( )}
); }