// UI primitives — buttons, inputs, badges, modals, etc. const { useState, useEffect, useRef, useMemo, useCallback, createContext, useContext } = React; /* ---------- Error Boundary ---------- Note: assigned to `var` (and window) so it's accessible from other text/babel scripts. `class X { }` in script scope is NOT visible across separate