/** * The small amount of chrome shared by every public PIG screen. * * These routes deliberately live outside the authenticated Shell, but they * should still feel like the same product. Keeping the wordmark, Learn link, * sign-in affordance and music control here prevents the auth and shared * Learn pages from drifting into separate mini-sites. */ import { AudioControl } from './AudioControl'; import { PiggyLogo } from './PiggyMark'; import { cn } from './ui'; type PublicDestination = 'learn' | 'sign-in'; export function PublicHeader({ current, onSignIn, }: { current?: PublicDestination; onSignIn?: () => void; }) { const itemClass = (destination: PublicDestination) => cn( 'tap relative inline-flex items-center px-2 text-sm font-medium transition-colors', current === destination ? 'text-fg' : 'text-muted hover:text-fg', current === destination && 'after:absolute after:inset-x-2 after:bottom-1 after:h-px after:bg-current', ); return (
); }