16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
type PageHeaderProps = {
|
|
eyebrow?: string;
|
|
title: string;
|
|
description?: string;
|
|
};
|
|
|
|
export function PageHeader({ eyebrow, title, description }: PageHeaderProps) {
|
|
return (
|
|
<header className="page-header">
|
|
{eyebrow ? <p className="eyebrow">{eyebrow}</p> : null}
|
|
<h1>{title}</h1>
|
|
{description ? <p>{description}</p> : null}
|
|
</header>
|
|
);
|
|
}
|