diff --git a/playground/src/App.tsx b/playground/src/App.tsx index bce2877..49cc522 100644 --- a/playground/src/App.tsx +++ b/playground/src/App.tsx @@ -1,11 +1,16 @@ -import { Component, createSignal, lazy, onCleanup, Show } from 'solid-js'; +import { Component, createMemo, createSignal, lazy, onCleanup, Show } from 'solid-js'; +import { Dynamic } from 'solid-js/web'; +import { modeStore } from './stores/mode-store'; +import { MODE_REGISTRY, getModeById } from './modes'; +import { ModeSwitcher } from './modes/ModeSwitcher'; import styles from './App.module.css'; -type Route = 'home' | 'primitives' | 'unknown'; +type Route = 'home' | 'primitives' | 'modes' | 'unknown'; function parseRoute(path: string): Route { if (path === '' || path === '/' || path === '/index.html') return 'home'; if (path === '/dev/primitives' || path === '/dev/primitives/') return 'primitives'; + if (path === '/modes' || path === '/modes/' || path.startsWith('/modes/')) return 'modes'; return 'unknown'; } @@ -39,6 +44,13 @@ const App: Component = () => { > home +