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 addOn of addOns) {
14 for(const route of (addOn?.routes||[])?.filter(r => r.url && r.name) || []) { %>
15 <div class="px-2 font-bold"><Link to="<%= route.url %>"><%= route.name %></Link></div>
16 <% } } %>
17 </nav>
18
19 <div>
20 <% for(const integration of integrations.filter(i => i.type === 'header-user')) { %>
21 <<%= integration.jsName %> />
22 <% } %>
23 </div>
24 </header>
25 )
26}