Add SectionHeader component (Closes #74) #75
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue