// Shared site shell loader for all multi-page routes.
// Reads ?screen=... or path-based hint. Renders matching screen full-bleed (no canvas).
const { useState, useEffect } = React;
// ───── WP integration: replace prototype mock data with real recipes from DB ─────
// data.jsx assigns window.RECIPES from its mock array. We override here using
// the __WP_RECIPES payload that page-prototype.php injects.
if (window.__WP_RECIPES && window.__WP_RECIPES.length > 0) {
window.RECIPES = window.__WP_RECIPES;
}
// openRecipe in nav() falls back to /recipes/{slug}/ — already WP-aware.
// ───── P6-2: Footer override with collections + WP-aware links ─────
if (window.__WP_COLLECTIONS && window.__WP_COLLECTIONS.length > 0) {
window.Footer = function WPFooter() {
return (
);
};
}
// ───── P6-1: Mood Grid → Collections (post-render DOM patch) ─────
// Prototype's renders mood buttons as