All checks were successful
CI / lint-and-test (push) Successful in 9m52s
Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
417 B
TypeScript
14 lines
417 B
TypeScript
interface PageHeaderProps {
|
|
title: string;
|
|
actions?: React.ReactNode;
|
|
}
|
|
|
|
export function PageHeader({ title, actions }: PageHeaderProps) {
|
|
return (
|
|
<header className="flex flex-col gap-4 sm:flex-row sm:justify-between sm:items-center mb-8">
|
|
<h2 className="text-2xl sm:text-3xl font-bold">{title}</h2>
|
|
{actions ? <div className="flex flex-wrap gap-3">{actions}</div> : null}
|
|
</header>
|
|
);
|
|
}
|