({
heading,
subheading,
eyebrow,
extraClass,
jaHeading,
}: SectionHeaderProps)
| 10 | jaHeading?: string; |
| 11 | }; |
| 12 | export default function SectionHeader({ |
| 13 | heading, |
| 14 | subheading, |
| 15 | eyebrow, |
| 16 | extraClass, |
| 17 | jaHeading, |
| 18 | }: SectionHeaderProps): JSX.Element { |
| 19 | return ( |
| 20 | <header |
| 21 | className={clsx([ |
| 22 | "row", |
| 23 | styles.sectionHeader, |
| 24 | extraClass ? extraClass : null, |
| 25 | ])} |
| 26 | > |
| 27 | {eyebrow && ( |
| 28 | <p className={clsx("type-zeta col col--8 eyebrow", styles.eyebrow)}> |
| 29 | {eyebrow} |
| 30 | </p> |
| 31 | )} |
| 32 | <h2 className={clsx("type-beta col col--8")}> |
| 33 | {heading}{" "} |
| 34 | {jaHeading && <span className={styles.jaHeading}>{jaHeading}</span>} |
| 35 | </h2> |
| 36 | |
| 37 | <p className={clsx("type-paragraph-large col col--4", styles.copy)}> |
| 38 | {subheading} |
| 39 | </p> |
| 40 | </header> |
| 41 | ); |
| 42 | } |
nothing calls this directly
no outgoing calls
no test coverage detected