In an emergency, call 911 or go to the nearest emergency room.
Direct Primary Care is for primary care, not emergencies.
);
}
/* Slim reassurance band */
function Reassurance({ text = 'No copays. No hidden fees. Just simple, caring healthcare.' }) {
return (
{text}
);
}
/* Tweaks are fixed in production. The interactive design panel (tweaks-panel.jsx)
is not loaded on the live site, so this just returns the defaults unchanged. */
function useTweaks(defaults) { return [defaults, () => {}]; }
/* Page wrapper: applies type scale, renders Nav + content + Footer */
function Page({ active, controls = [], children }) {
const [t] = useTweaks(TWEAK_DEFAULTS);
useEffect(() => {
document.documentElement.style.fontSize = (t.typeScale || 16) + 'px';
}, [t.typeScale]);
return (
<>
{typeof children === 'function' ? children(t) : children}
>
);
}
// Mount a page wrapped in an ErrorBoundary so a render crash shows a friendly
// message + email link instead of a blank screen.
function renderApp(node) {
ReactDOM.createRoot(document.getElementById('root')).render({node});
}
Object.assign(window, { TWEAK_DEFAULTS, PageHead, EmergencyNote, Reassurance, Page, renderApp });