You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
537 B
22 lines
537 B
import { type ReactNode } from "react";
|
|
|
|
interface PageHeaderProps {
|
|
title: string;
|
|
subtitle?: string;
|
|
action?: ReactNode;
|
|
}
|
|
|
|
export function PageHeader({ title, subtitle, action }: PageHeaderProps) {
|
|
return (
|
|
<div className="mb-6 flex flex-wrap items-start justify-between gap-4">
|
|
<div>
|
|
<h1 className="text-2xl font-semibold text-text-primary">{title}</h1>
|
|
{subtitle && (
|
|
<p className="mt-1 text-sm text-text-secondary">{subtitle}</p>
|
|
)}
|
|
</div>
|
|
{action}
|
|
</div>
|
|
);
|
|
}
|