/* ========================================================== YAPPY. — e-Prescription document + simulated email Used by the Doctor panel (preview/issue) and the customer order page (view). Prototype: watermarked, not a valid Rx. ========================================================== */ function RxDocument({ rx, compact }) { const d = rx.doctor || {}; const blank = (v, l = 'Not set') => v ? v : {l}; const cell = { padding: '8px 10px', borderBottom: '1px solid #d9cbb0', verticalAlign: 'top', textAlign: 'left' }; return (
| {h} | )}||||
|---|---|---|---|---|
| {i + 1} | YAPPY. {PRODUCTS[it.sku].name}. {PACK.descriptor} · {PRODUCTS[it.sku].pct} variant |
{it.instructions || '—'} | {it.duration || '—'} | {it.qty} pouch{it.qty > 1 ? 'es' : ''} |
Thanks for your consultation. Your prescription from {rx.doctor?.name ? 'Dr. ' + rx.doctor.name : 'our doctor'} is attached{rx.orderRef ? <> and has been added to order {rx.orderRef} — we’ll start preparing it now> : ''}.