"use client"; import Link from 'next/link'; import { ArrowLeft, FileText, Sparkles } from 'lucide-react'; import { Button } from '@/components/ui/button'; interface AppHeaderProps { showBackButton?: boolean; backHref?: string; showDetailsButton?: boolean; onDetailsClick?: () => void; title?: string; showLogo?: boolean; } export function AppHeader({ showBackButton = false, backHref = '/', showDetailsButton = false, onDetailsClick, title, showLogo = false, // Default to false }: AppHeaderProps) { return (
{/* Left content (Back button) */}
{showBackButton && ( )}
{/* Middle content (Title or flex-1 placeholder for balance) */} {title ? (

{title}

) : (
// Ensures right content is pushed to the right even without a title )} {/* Right content (Details Button, JourneyAI Logo) */}
{showDetailsButton && onDetailsClick && ( )} {showLogo && ( JourneyAI )}
); }