16 lines
487 B
TypeScript
16 lines
487 B
TypeScript
type Props = {
|
|
headline: string;
|
|
subheadline?: string;
|
|
};
|
|
|
|
export default function PublicPageHeading({ headline, subheadline }: Props) {
|
|
return (
|
|
<div className="py-4">
|
|
<div className="mx-auto max-w-5xl px-4 text-center sm:px-6 lg:px-8">
|
|
<h1 className="text-3xl font-extrabold tracking-tight sm:text-4xl">{headline}</h1>
|
|
{subheadline && <p className="text-muted-foreground mx-auto mt-4 max-w-2xl text-xl">{subheadline}</p>}
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|