"use client";

import { ReactNode } from "react";

interface PageHeaderProps {
  title: string;
  description?: string | ReactNode;
  actions?: ReactNode;
  rightContent?: ReactNode;
}

export function PageHeader({
  title,
  description,
  actions,
  rightContent,
}: PageHeaderProps) {
  return (
    <div className="flex items-center justify-between">
      <div>
        <h1 className="text-2xl font-bold text-foreground">{title}</h1>
        {description && (
          <div className="text-muted-foreground">{description}</div>
        )}
      </div>
      {rightContent}
      {actions && <div className="flex gap-2">{actions}</div>}
    </div>
  );
}

