2024-03-19 14:49:50 -06:00

16 lines
308 B
TypeScript

import { FC } from "react";
interface Props {
strapline?: string;
title: string;
}
export const Heading: FC<Props> = ({ strapline, title }) => {
return (
<section className="heading">
{!!strapline && <h2 className="strapline">{strapline}</h2>}
<h1>{title}</h1>
</section>
);
};