-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
32 lines (29 loc) · 890 Bytes
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { StyledLink, LayoutProps } from "rakkasjs";
import css from "./layout.module.css";
export default function MainLayout({ children }: LayoutProps) {
return (
<div className={css.wrapper}>
<div className={css.title}>
<nav>
<ul className={css.links}>
<StyledLink href="/pokemon/pikachu" activeClass={css.activeLink}>
Pikachu
</StyledLink>
<StyledLink href="/pokemon/charizard" activeClass={css.activeLink}>
Charizard
</StyledLink>
<StyledLink href="/pokemon/onix" activeClass={css.activeLink}>
Onix
</StyledLink>
</ul>
</nav>
</div>
{children}
</div>
);
}
// import type { HeadersFunction } from "rakkasjs";
//
// export const headers: HeadersFunction = () => ({
// throttleRenderStream: true,
// });