interface PageHeadingProps { title: string; subtitle?: string; } const PageHeading = ({ title, subtitle }: PageHeadingProps): JSX.Element => { return (

{title}

{subtitle !== undefined && (

{subtitle}

)}
); }; export default PageHeading;