Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

Shell.tsx

26 lines676 Bytes

1import { Link, Outlet } from '@tanstack/react-router'
2import { useEffect } from 'react'
3import styles from '~/styles/shell.module.css'
4​
5export function Shell() {
6 useEffect(() => {
7 ;(window as any).__CSS_INLINE_E2E_HYDRATED__ = true
8 }, [])
9​
10 return (
11 <main className={styles.shell} data-testid="shell">
12 <nav className={styles.nav}>
13 <Link data-testid="nav-home" to="/">
14 Home
15 </Link>
16 <Link data-testid="nav-dashboard" to="/app/dashboard">
17 Dashboard
18 </Link>
19 <Link data-testid="nav-details" to="/app/dashboard/details">
20 Details
21 </Link>
22 </nav>
23 <Outlet />
24 </main>
25 )