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