website/_components/header.tsx

16 lines
310 B
TypeScript
Raw Normal View History

2023-07-26 16:34:06 -04:00
export interface Props {
title: string;
description?: string;
2023-07-26 22:02:15 -04:00
comp: any;
2023-07-26 16:34:06 -04:00
}
export default function(props: Props) {
return (
<header className="page-header">
<h1>{ props.title }</h1>
2023-07-26 22:02:15 -04:00
{props.comp.separator()}
<p className="subheading">{ props.description }</p>
2023-07-26 16:34:06 -04:00
</header>
)
}