// wf-admin.jsx — Screen 4: Admin shell (PUC-8, PUC-9). A/B + states.
const { Screen: AScreen, Wordmark: AWordmark, TopBar: ATopBar, AccountChip: AAccountChip,
Banner: ABanner, EmptyAdmin: AEmptyAdmin, StateBlock: AStateBlock, WF_T: AT, WF_DS: ADS } = window;
const { Eyebrow: AEyebrow } = ADS;
const STORE = 'Studio Fern';
// storefront identity lockup — the admin's anchor (left of top bar in A)
function StoreId({ size = 17 }) {
return (
{STORE}
ecomm storefront
);
}
// ── Direction A — top bar + centered honest-empty ──────────────────────────
function AdminA({ device = 'desktop' }) {
const desktop = device === 'desktop';
return (
}
right={desktop ? : } />
);
}
// ── Direction B — durable app shell (sidebar + content) ────────────────────
function AdminB({ device = 'desktop' }) {
const desktop = device === 'desktop';
if (!desktop) {
return (
} right={} />
Home
);
}
return (
);
}
function Sidebar() {
return (
);
}
function NavItem({ children, active, full }) {
return (
{children}
);
}
const signOutBtn = { fontFamily: AT.disp, fontWeight: 500, fontSize: 14, color: AT.star, background: 'transparent', border: 'none', cursor: 'pointer', padding: 0 };
// ── States stack ───────────────────────────────────────────────────────────
function AdminStates() {
return (
);
}
function Skel({ w, h }) {
return ;
}
Object.assign(window, { AdminA, AdminB, AdminStates });