import { Button } from '@/components/ui/button' import { Rocket, BarChart3, Sparkles } from 'lucide-react' import { buildProUrl, formatCompactTokenCount, getTokenUsageCta } from '@/lib/utils' interface TopbarProps { currentPage: 'overview' | 'survey' | 'token-dashboard' onPageChange: (page: 'overview' | 'survey' | 'token-dashboard') => void shouldShowUpsell: boolean tokensCreated: number } export const Topbar = ({ currentPage, onPageChange, shouldShowUpsell, tokensCreated, }: TopbarProps) => { const { message: ctaMessage, variant } = getTokenUsageCta() const compactTokens = formatCompactTokenCount(tokensCreated) const proUrl = buildProUrl({ source: 'dashboard', medium: 'header', campaign: 'pro-upgrade', content: `token-usage-variant-${variant}`, }) return (

JWT Auth

{/* Navigation */}
{shouldShowUpsell && ( <> {compactTokens} tokens generated - {ctaMessage} )}
) }