import React from "react"; import { Link } from "react-router-dom"; import { createPageUrl } from "@/utils"; import { ArrowLeft } from "lucide-react"; import { Button } from "@/components/ui/button"; export default function PageHeader({ title, subtitle, actions = null, backTo = null, backButtonLabel = "Back" }) { return (
{/* Back Button */} {backTo && ( )} {/* Main Header */}

{title}

{subtitle && (

{subtitle}

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