import { useState } from 'react' import BottomNav, { type TabId } from './components/BottomNav' import Home from './pages/Home' import Rules from './pages/Rules' import Cards from './pages/Cards' import Game from './pages/Game' import Contact from './pages/Contact' export default function App() { const [tab, setTab] = useState('start') return (
{tab === 'start' && setTab('spiel')} onRegeln={() => setTab('regeln')} />} {tab === 'regeln' && } {tab === 'karten' && } {tab === 'spiel' && } {tab === 'kontakt' && }
) }