// Shared components const { useState, useEffect, useMemo } = React; // ----------------------------------------------------- // WordPress admin bar (the only WP chrome shown) // ----------------------------------------------------- function AdminBar({ visible, onHide }) { if (!visible) return null; return (
W Seenu George Realty
+ New
✎ Edit Page
↻ Updates 3
💬 Comments 2
📊 Yoast SEO
Howdy, Seenu ▾
); } // ----------------------------------------------------- // Brand mark // ----------------------------------------------------- function BrandMark({ onClick }) { return (
Seenu George
Seenu George
REALTOR® · eXp REALTY
); } // ----------------------------------------------------- // Top nav // ----------------------------------------------------- const PAGES = [ { key: 'home', label: 'Home' }, { key: 'listings', label: 'Listings' }, { key: 'neighborhoods', label: 'Communities' }, { key: 'about', label: 'About' }, { key: 'buyer', label: 'Buy' }, { key: 'seller', label: 'Sell' }, { key: 'blog', label: 'Insights' }, { key: 'contact', label: 'Contact' }, ]; function Nav({ page, setPage, adminVisible }) { const [open, setOpen] = React.useState(false); const go = (key) => { setPage(key); setOpen(false); }; return (
{PAGES.map(p => (
go(p.key)}> {p.label}
))}
{(window.IDX && window.IDX.PHONE) || '+1 (403) 828-2359'}
); } // ----------------------------------------------------- // Image placeholder // ----------------------------------------------------- function ImgPh({ label, dark, className, style }) { return (
{label}
); } // ----------------------------------------------------- // Listing card // ----------------------------------------------------- function ListingCard({ l, onClick }) { const [fav, setFav] = useState(false); return (
{l.tag} {l.imgLabel}
{l.area} {l.price}

{l.title}

{l.beds} bed · {l.baths} bath · {l.sqft} sqft · {l.lot}
); } // ----------------------------------------------------- // Footer // ----------------------------------------------------- function Footer({ setPage }) { return ( ); } Object.assign(window, { AdminBar, Nav, BrandMark, ImgPh, ListingCard, Footer, PAGES });