Add SectionHeader component (Closes #74) #75

Merged
e26chiu merged 4 commits from sectionheader-component into main 2022-11-05 09:01:47 -04:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 40f9de6463 - Show all commits

View File

@ -4,14 +4,14 @@ import styles from "./SectionHeader.module.css";
interface SectionHeaderProps { interface SectionHeaderProps {
title: string; title: string;
subtitle: string; subtitle?: string;
} }
export function SectionHeader({ title, subtitle }: SectionHeaderProps) { export function SectionHeader({ title, subtitle }: SectionHeaderProps) {
return ( return (
<div className={styles.header}> <div className={styles.header}>
<h1 className={styles.title}>{title}</h1> <h1 className={styles.title}>{title}</h1>
<h5 className={styles.subTitle}>{subtitle}</h5> {subtitle && <h5 className={styles.subTitle}>{subtitle}</h5>}
</div> </div>
); );
} }