// ===== Info / static pages ===== const { useState: useIS } = React; const InfoPage = () => { const params = new URLSearchParams(location.search); const topic = params.get("topic") || "about"; const t = INFO_TOPICS[topic] || INFO_TOPICS.about; return ( {() => (
Home {t.title}
{t.eyebrow}

{t.title}

{t.sub}

{[ ["about","About"], ["showroom","Showroom"], ["blog","Blog"], ["faq","FAQ"], ["warranty","Warranty"], ["shipping","Shipping"], ["support","Support"], ["contact","Contact"], ].map(([k,l]) => ( {l} ))}
{t.stats && (
{t.stats.map(([n, l], i) => (
{n}
{l}
))}
)} {t.body && (
{t.body.map((b, i) => (
{String(i+1).padStart(2,"0")}

{b.h}

{b.p}

))}
)} {t.faq && (
{t.faq.map(([q, a], i) => )}
)} {t.contact && } {t.cta && (
{t.cta.label}
)}

Need a hand?

Our team responds in < 5 min on chat during business hours.

)}
); }; const FaqItem = ({ q, a, idx }) => { const [open, setOpen] = useIS(idx === 0); return (
{open &&

{a}

}
); }; const ContactForm = () => { const [reason, setReason] = useIS("question"); const [sent, setSent] = useIS(false); const [form, setForm] = useIS({ name: "", email: "", phone: "", msg: "" }); const set = (k, v) => setForm(p => ({ ...p, [k]: v })); if (sent) return (

Message received

Thanks {form.name.split(" ")[0]}, we'll reply within 24 hours on weekdays.

Back to shop
); return (
Call us 0560 11 02 30 9 AM – 9 PM, 7 days
Email hello@store.dz 24h reply on weekdays
Visit showroom 12 Rue Didouche Mourad Algiers · Sat–Thu 10–20
{ e.preventDefault(); setSent(true); }}>

Send us a message

What can we help with?
{[["question","General question"],["order","About an order"],["rma","Warranty / repair"],["b2b","Business inquiry"]].map(([k,l]) => ( ))}
); }; ReactDOM.createRoot(document.getElementById("root")).render();