import reactLogo from '../assets/react.svg'; import viteLogo from '/vite.svg'; import './Home.css'; import { getRouteApi, Link } from '@tanstack/react-router'; import { useUser } from '../lib/context/user'; import { useEstimationSessions } from '../lib/context/estimationSession'; import { Card, GridList } from '../components'; const route = getRouteApi('/'); function Home() { const user = useUser(); const navigate = route.useNavigate(); const estimationSessions = useEstimationSessions(); return ( <>
Vite logo React logo

Scrummie-Poker

User Id: {user.current?.$id}

Estimation sessions

( { navigate({ to: '/estimate/session/$sessionId', params: { sessionId: item.$id }, }); }} /> )} onAddItem={() => navigate({ to: '/estimate/new', }) } />
); } export default Home;