import type { ReactNode } from "react"; import { Link } from "react-router"; import logo from "../assets/logo.png"; interface TopBarProps { /** The role switcher, drawn between the brand and the spacer. */ nav?: ReactNode; /** Right-hand side: the signed-in user, the role chip, Account and Sign out. */ children?: ReactNode; } /** Sticky shop header. Same markup classes as the old page's header.top. */ export function TopBar({ nav, children }: TopBarProps) { return (
PESCO
Packet Station
{nav}
{children ?
{children}
: null}
); }