2023-07-26 16:34:06 -04:00
|
|
|
export interface Props {
|
|
|
|
heading: string;
|
|
|
|
subheading?: 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.heading }</h1>
|
2023-07-26 22:02:15 -04:00
|
|
|
{props.comp.separator()}
|
2023-07-26 16:34:06 -04:00
|
|
|
<p className="subheading">{ props.subheading }</p>
|
|
|
|
</header>
|
|
|
|
)
|
|
|
|
}
|