import React from "react"; import ReactDOM from "react-dom"; import { WavesPage } from "./pages/waves-page"; import { VocabularyPage } from "./pages/vocabulary-page"; import { CreaturePage } from "./pages/creature-page"; import { MandalaPage } from "./pages/mandala-page"; import { DebugPage } from "./pages/debug-page"; const Pages = { vocabulary: VocabularyPage, creature: CreaturePage, waves: WavesPage, mandala: MandalaPage, debug: DebugPage, }; type PageName = keyof typeof Pages; const pageNames = Object.keys(Pages) as PageName[]; const APP_ID = "app"; const appEl = document.getElementById(APP_ID); if (!appEl) { throw new Error(`Unable to find #${APP_ID}!`); } const Navbar: React.FC<{ currPageName: string }> = (props) => (