Open History to see the last commit
1<% if (addOns.length === 0 && integrations.length === 0 && routes.length === 0) { ignoreFile() } %>import { Link } from '@tanstack/solid-router'
2<% for(const integration of integrations.filter(i => i.type === 'header-user')) { %>
3 import <%= integration.jsName %> from "<%= relativePath(integration.path) %>";
4 <% } %>
6export default function Header() {
7 return (
8 <header class="p-2 flex gap-2 bg-white text-black justify-between">
9 <nav class="flex flex-row">
10 <div class="px-2 font-bold">
11 <Link to="/">Home</Link>
12 </div>
13 <% for(const route of (routes||[]).filter(r => r.url && r.name)) { %>
14 <div class="px-2 font-bold"><Link to="<%= route.url %>"><%= route.name %></Link></div>
15 <% } %>
16 </nav>
17
18 <div>
19 <% for(const integration of integrations.filter(i => i.type === 'header-user')) { %>
20 <<%= integration.jsName %> />
21 <% } %>
22 </div>
23 </header>
24 )
25}