import React from "react"; import { Link } from "react-router-dom"; import { ArrowLeft } from "lucide-react"; import { Button } from "./ui/button"; interface PageHeaderProps { title: string; subtitle?: string; actions?: React.ReactNode; backTo?: string | null; backButtonLabel?: string; } export default function PageHeader({ title, subtitle, actions = null, backTo = null, backButtonLabel = "Back" }: PageHeaderProps) { return (
{/* Back Button */} {backTo && ( )} {/* Main Header */}

{title}

{subtitle && (

{subtitle}

)}
{/* Custom Actions (if provided) */} {actions && (
{actions}
)}
); }