import styles from "./pageHeader.module.scss";

export const PageHeader = ({
  heading,
  lead,
}: {
  heading: string;
  lead?: string;
}) => {
  return (
    <div className={styles.pageHeader}>
      <h1 className={styles.title}>{heading}</h1>
      {lead && (
        <div className="lead" dangerouslySetInnerHTML={{ __html: lead }} />
      )}
    </div>
  );
};
